Results 1 to 2 of 2

Thread: Client/Server

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    5

    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

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177

    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
  •  



Click Here to Expand Forum to Full Width