initiate a connection on a socket NAME connect - initiate a connection on a socket LIBRARY Standard C librar...get name of connected peer socket NAME getpeername - get name of connected peer socket LIBRARY Standard C lib...listen for connections on a socket NAME listen - listen for connections on a socket LIBRARY Standard C libra...accept a connection on a socket NAME accept, accept4 - accept a connection on a socket LIBRARY Standard C...accept a connection on a socket NAME accept, accept4 - accept a connection on a socket LIBRARY Standard C...shut down part of a full-duplex connection NAME shutdown - shut down part of a full-duplex connection LIBRARY Standard C library...create a pair of connected sockets NAME socketpair - create a pair of connected sockets LIBRARY Standard C library......are VSockets") protocol for hypervisor-guest communication vsock (7) AF_KCM . KCM (kernel connection multiplexer) interface AF_XDP . XDP (express data path) interface Further de…...it a message to another socket. The send () call may be used only when the socket is in a connected state (so that the intended recipient is known). The only difference between …...it a message to another socket. The send () call may be used only when the socket is in a connected state (so that the intended recipient is known). The only difference between …...it a message to another socket. The send () call may be used only when the socket is in a connected state (so that the intended recipient is known). The only difference between …...&addr, sizeof(addr)) == -1) { perror("bind"); close(lfd); return -1; } printf("accepting connections on port %d\n", listen_port); listen(lfd, 10); return lfd; } static int conne…...alls are used to receive messages from a socket. They may be used to receive data on both connectionless and connection-oriented sockets. This page first describes common featur…...alls are used to receive messages from a socket. They may be used to receive data on both connectionless and connection-oriented sockets. This page first describes common featur…...alls are used to receive messages from a socket. They may be used to receive data on both connectionless and connection-oriented sockets. This page first describes common featur…...necessary to assign a local address using bind () before a SOCK_STREAM socket may receive connections (see accept (2)). The rules used in name binding vary between address famil…...ed to know about socketcall (). call Man page SYS_SOCKET socket (2) SYS_BIND bind (2) SYS_CONNECT connect (2) SYS_LISTEN listen (2) SYS_ACCEPT accept (2) SYS_GETSOCKNAME getsock…...ESTADDRREQ fd refers to a datagram socket for which a peer address has not been set using connect (2). EDQUOT The user's quota of disk blocks on the filesystem containing the fi…...AF_INET; addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); addr.sin_port = htons(1234); if (connect(sockfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) { perror("connect()"); e…...else printf("No data within five seconds.\n"); exit(EXIT_SUCCESS); } SEE ALSO accept (2), connect (2), poll (2), read (2), recv (2), restart_syscall (2), send (2), sigprocmask (…