op_bind()
Note: Requires Shared Code functionality
Abstract
Assigns an address to a socket.
Syntax
op_bind (sockfd, my_addr, addrlen)
| Argument | Type | Description |
|---|---|---|
sockfd |
int |
File descriptor of the socket to bind the address to |
my_addr |
const struct sockaddr * |
Pointer to a structure containing the address to bind |
addrlen |
unsigned int |
Size of the my_addr structure |
Return Type
int
0 if successful; -1 if unsuccessful.
Header
shared_code_support.h