...void) { int retval; int sockfd; struct iovec msg1[2], msg2; struct mmsghdr msg[2]; struct sockaddr_in addr; sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd == -1) { perror("…...1]; struct iovec iovecs[VLEN]; struct mmsghdr msgs[VLEN]; struct timespec timeout; struct sockaddr_in addr; sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd == -1) { perror("…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 *…execute program relative to a directory file descriptor NAME execveat - execute program relative to a directory file descriptor LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #…...) > (y) ? (x) : (y)) static int listen_socket(int listen_port) { int lfd; int yes; struct sockaddr_in addr; lfd = socket(AF_INET, SOCK_STREAM, 0); if (lfd == -1) { perror("socke…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…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 resource usage NAME getrusage - get resource usage LIBRARY Standard C library ( libc , -lc ) SYNOPSIS #include <sys/resource.h> int getrusage(int who , struct rusage * usage );…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…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…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…port I/O NAME outb, outw, outl, outsb, outsw, outsl, inb, inw, inl, insb, insw, insl, outb_p, outw_p, outl_p, inb_p, inw_p, inl_p - port I/O LIBRARY Standard C library ( libc , -lc…