Socket

TCP(4) - Device Drivers Manual

Tcpbench, Netintro, Getsockopt, Ipsecctl, Socket, Inet, Inet6, Tcpdrop, Ip6, Ip, Tcp

TCP(4) - Device Drivers Manual # TCP(4) - Device Drivers Manual NAME # tcp - Internet Transmission Control Protocol SYNOPSIS # #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> int socket(AF_INET, SOCK_STREAM, 0); int socket(AF_INET6, SOCK_STREAM, 0); DESCRIPTION # The TCP protocol provides a reliable, flow-controlled, two-way transmission of data. It is a byte-stream protocol used to support the SOCK_STREAM abstraction. TCP uses the standard Internet address format and, in addition, provides a per-host collection of “port addresses”. ...

UDP(4) - Device Drivers Manual

Send, Netintro, Getsockopt, Socket, Inet, Inet6, Recv, Ip6, Ip, Udp

UDP(4) - Device Drivers Manual # UDP(4) - Device Drivers Manual NAME # udp - Internet User Datagram Protocol SYNOPSIS # #include <sys/socket.h> #include <netinet/in.h> int socket(AF_INET, SOCK_DGRAM, 0); int socket(AF_INET6, SOCK_DGRAM, 0); DESCRIPTION # UDP is a simple, unreliable datagram protocol which is used to support the SOCK_DGRAM abstraction for the Internet protocol family. UDP sockets are connectionless, and are normally used with the sendto(2) and recvfrom(2) calls, though the connect(2) call may also be used to fix the destination for future packets (in which case the recv(2) or read(2) and send(2) or write(2) system calls may be used). ...

UNIX(4) - Device Drivers Manual

Netintro, Socket, Unix

UNIX(4) - Device Drivers Manual # UNIX(4) - Device Drivers Manual NAME # unix - UNIX-domain protocol family SYNOPSIS # #include <sys/types.h> #include <sys/un.h> DESCRIPTION # The UNIX-domain protocol family is a collection of protocols that provides local (on-machine) interprocess communication through the normal socket(2) mechanisms. The UNIX-domain family supports the SOCK_STREAM, SOCK_SEQPACKET, and SOCK_DGRAM socket types and uses filesystem pathnames for addressing. ADDRESSING # UNIX-domain addresses are variable-length filesystem pathnames of at most 104 characters. ...