int s;
s = socket(domain, socket-type, protocol-used); // Creates a socket
|
domain parameter: PF_INET = will use the IPv4 protocol (PF = protocol family) PF_INET6 = will use the IPv6 protocol |
|
int s;
s = socket(PF_INET, SOCK_DGRAM, 0); // Creates a IPv4 UDP socket
|
|
|