|
-
Jul 12th, 2005, 04:45 PM
#1
Thread Starter
New Member
Client/Server
If I want to listen for a connection from my server, to my client... do I need a new winsock thing, or can I use the same one that is sending the data to the server?
also, how would i do this?
Thanks,
Frogsquasher
-
Jul 13th, 2005, 08:25 AM
#2
Frenzied Member
Re: Client/Server
The server is the only one that listens for a connection request. The client sends a connect request, and once connected can send and receive data until one side or the other closes the connection.
The server can use the same control to listen and connect, but the best approach is to use an array of winsock controls and pass the connecting & data communication off to one of the other controls in the array.
There are examples of both approaches at http://msdn.microsoft.com/library/de...ockcontrol.asp
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
|