table of contents
socket_bind4(3) | Library Functions Manual | socket_bind4(3) |
NAME¶
socket_bind4 - set the local IP address and port of a socketSYNTAX¶
#include <socket.h>DESCRIPTION¶
socket_bind4 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(s,ip,p);
socket_connect4(s,ip,p);