|
-
Jun 27th, 2007, 04:05 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|