bind function in SDK
-
Can any one explain in brief the bind function in SDK for Socket programming "Assigns a local name to an unnamed socket":((
VIBIN Sim Infosys
VIBIN wrote:
Can any one explain in brief the bind function in SDK for Socket programming "Assigns a local name to an unnamed socket"
The
bind
function is used on an unconnected socket before subsequent calls to theconnect
orlisten
functions. It is used to bind to either connection-oriented (stream) or connectionless (datagram) sockets. When a socket is created with a call to thesocket
function, it exists in a namespace (address family), but it has no name assigned to it. Use thebind
function to establish the local association of the socket by assigning a local name to an unnamed socket. ref: from MSDN 2005. Knock out 't' from can't, You can if you think you can :cool: -
Can any one explain in brief the bind function in SDK for Socket programming "Assigns a local name to an unnamed socket":((
VIBIN Sim Infosys
yeah, bind simply finds and open and available socket to commense ethernet communication. Without a binded socket, (an address through which the computer knows it can send data) it is impossible to process function like send and recv.