|
-
Jun 27th, 2007, 03:42 PM
#1
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.
-
Jun 27th, 2007, 04:18 PM
#2
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|