table of contents
socket_bind4_reuse(3) | Library Functions Manual | socket_bind4_reuse(3) |
NAME¶
socket_bind4_reuse - set the local IP address and port of a socketSYNTAX¶
#include <socket.h>DESCRIPTION¶
socket_bind4_reuse sets the local IP address and TCP/UDP port of a TCP/UDP socket s to ip and port respectively.EXAMPLE¶
#include <socket.h>
int s;
char ip[4];
uint16 p;
s = socket_tcp4();
socket_bind4_reuse(s,ip,p);
socket_connect4(s,ip,p);