|
-
Jun 6th, 2000, 01:16 AM
#1
Hyperactive Member
Why are you attempting to bind then connect?
What does bind do?
Bind tells the computer, usually a server, hey, I(the socket) am associated with this port.
What is associcated with bind?
Listen. After binding a socket to a port, you call the listen method, which tells the server, that this socket is listening for incoming data on this port.
So you see bind is associated with listening, if you wish to connect a bind is not needed, only when you are listening. If you are creating a server, then connect is now being called, but rather connection requested, because your socket has received a connect request (with its bind and listen).
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
|