IMPORT_C int bind(int, struct sockaddr *, size_t);
Description
Associate that socket with a port.
Parameters
int |
Is the integer descriptor of the desired socket.
|
struct sockaddr * |
Points to a sockaddr structure containing the socket address.
|
size_t
|
Points to an integer that states the address length in bytes.
|
|
Return value
int |
On Success, returns 0. On Failure, returns -1, errno may be set.
|
|