The following functions are used with communications resources:
| To . . . | Use this system call . . . |
|---|---|
| Accept a connection on a socket | accept |
| Assign a local protocol address to a socket | bind |
| Berkeley Packet Filter | bpf |
| Convert values between host and network byte order | byteorder |
| Initiate a connection on a socket | connect |
| Ethernet address conversion and lookup routines | ethers, ether_line, ether_aton, ether_aton_r, ether_ntoa, ether_ntoa_r, ether_ntohost |
| File control | fcntl |
| Get error message string from EAI_xxx error code | gai_strerror |
| Socket address structure to host and service name | getaddrinfo, freeaddrinfo |
| Get network host entry | gethostbyname, gethostbyname2, gethostent, sethostent, endhostent |
| Get interface addresses | getifaddrs |
| Get multicast group memberships | getifmaddrs |
| Nodename-to-address and address-to-nodename translation | getipnodebyname, getipnodebyaddr, freehostent |
| Socket address structure to hostname and service name | getnameinfo |
| Get a network entry | getnetbyname, getnetbyaddr, getnetent, setnetent, endnetent |
| Get name of connected peer | getpeername |
| Get protocol entry | getprotobyname, getprotoent, setprotoent, endprotoent |
| Get service entry | getservbyname, getservbyport, getservent, setservent, endservent |
| et socket name | getsockname |
| Get and set options on sockets | getsockopt, setsockopt |
| Provide mappings between interface names and indexes | if_indextoname |
| Internet address manipulation routines | inet |
| Internet network number manipulation routines | inet_net |
| IPv6 Hop-by-Hop and Destination Options manipulation | inet6_opt_init |
| IPv6 Routing Header Options manipulation | inet6_rth_space |
| Control a device | ioctl |
| Elementary address specification routines for link level access | linkaddr |
| Listen for connections on a socket | listen |
| Synchronous I/O multiplexing | poll |
| Receive a message from a socket | recv |
| Synchronous I/O multiplexing | select |
| Send a message from a socket | send |
| Disable sends and/or receives on a socket | shutdown |
| Create an endpoint for communication | socket |
| Get or set system information | sysctl, sysctlbyname, sysctlnametomib |