create an endpoint for communication NAME socket - create an endpoint for communication LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int socket(int do…bind a name to a socket NAME bind - bind a name to a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int bind(int sockfd , const struct sockaddr *…initiate a connection on a socket NAME connect - initiate a connection on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int connect(int sockfd…get and set options on sockets NAME getsockopt, setsockopt - get and set options on sockets LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int getsockop…get and set options on sockets NAME getsockopt, setsockopt - get and set options on sockets LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int getsockop…receive a message from a socket NAME recv, recvfrom, recvmsg - receive a message from a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t re…receive a message from a socket NAME recv, recvfrom, recvmsg - receive a message from a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t re…receive a message from a socket NAME recv, recvfrom, recvmsg - receive a message from a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t re…send a message on a socket NAME send, sendto, sendmsg - send a message on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t send(int sockf…send a message on a socket NAME send, sendto, sendmsg - send a message on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t send(int sockf…send a message on a socket NAME send, sendto, sendmsg - send a message on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> ssize_t send(int sockf…get socket name NAME getsockname - get socket name LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int getsockname(int sockfd , struct sockaddr *restrict…listen for connections on a socket NAME listen - listen for connections on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int listen(int sockfd…get name of connected peer socket NAME getpeername - get name of connected peer socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int getpeername(in…set up performance monitoring NAME perf_event_open - set up performance monitoring LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <linux/perf_event.h> /* Definition of…compare two processes to determine if they share a kernel resource NAME kcmp - compare two processes to determine if they share a kernel resource LIBRARY Standard C library ( libc …accept a connection on a socket NAME accept, accept4 - accept a connection on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int accept(int soc…accept a connection on a socket NAME accept, accept4 - accept a connection on a socket LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/socket.h> int accept(int soc…set pointer to thread ID NAME set_tid_address - set pointer to thread ID LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/syscall.h> /* Definition of SYS_* constant…...argc != 4) { fprintf(stderr, "Usage\n\tfwd <listen-port> " "<forward-to-port> <forward-to-ip-address>\n"); exit(EXIT_FAILURE); } signal(SIGPIPE, SIG_IGN); forward_port = atoi(ar…