Computer Geeks

Computer Geeks

Geek Shop

Geek News

Geek Stuff

Science Geek

Computer Gaming

Linux Chat

Building Websites

Computer Forums

Computer Help Forum

Computer Hardware Forum

Computer Software Programs


Go Back   Computer Forums > Building Websites
FAQ Community Calendar Today's Posts Search

Building Websites This section covers all aspects of publishing, developing and maintaining websites. Topics include: website design, graphic design, website programming, web hosting, website marketing (SEO, link exchange, publicity, advertising), monetization & etc.

Computer Geeks
» Active Discussions
Computer Geeks
No Threads to Display.
» Other Websites
- Software Publishing

- Server Hardening
Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2007, 05:42 AM
pontt pontt is offline
Junior Member
GB Newbie
 
Join Date: Dec 2007
Posts: 11
Cool winsock - client AND server

Is it not possible to make a program be both a client & server? I'm new to the winsock control & just finished reading PINO's basic intro. I did the peer-to-peer project for client/server chat. However, I want the program to be both a server & a client so two people don't have to worry about one being the server & one being the client.

I have the code for the program to listen. However, when I put the code for it to make a connection & click the button for that code, it states "invalid operation at current state".

So is it possible to have a program be both a client & server? I think it is and maybe it needs 2 winsock controls? Any help is greatly appreciated.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Powered by vBadvanced CMPS v3.2.3

All times are GMT -5. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.