table of contents
socket_bind6(3) | Library Functions Manual | socket_bind6(3) |
NAME¶
socket_bind6 - set the local IP address and port of a socketSYNTAX¶
#include <socket.h>uint32 scope_id);
DESCRIPTION¶
socket_bind6 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[16];
uint16 p;
uint32 scope_id;
s = socket_tcp6();
socket_bind6(s,ip,p,scope_id);
socket_connect6(s,ip,p);