Results 1 to 16 of 16

Thread: [RESOLVED] winsock - client AND server

Hybrid View

  1. #1
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: winsock - client AND server

    Listening is like plugging a phone into the line so it can accept calls. Until you "pick up" the handset your phone is in "server mode."

    Connecting to a server is a bit like dialing the telephone. You'd need to "pick up" first (close the listening socket) before you can "dial" (make a connection request).

    If you dial a phone that is not listening then you get a busy or out of service signal back.

    There is no magic. You can't pick up the phone without dialing and expect the phone to know who to call.

  2. #2

    Thread Starter
    Fanatic Member drivenbywhat's Avatar
    Join Date
    Jan 2007
    Location
    VA - USA
    Posts
    866

    Re: winsock - client AND server

    Dilettante, I understand the listen & connect part. But if I must close the "listening" to connect, this will make users have to coordinate which one will be the server n which the client. Isn't there a way to make them client & server without much user interaction?

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