//Helper function you can use://Convert a struct sockaddr address to a string, IPv4 and IPv6:char*get_ip_str(conststructsockaddr *sa,char*s, size_t maxlen) {switch(sa->sa_family) {caseAF_INET: inet_ntop(AF_INET,&(((structsockaddr_in *)sa)->sin_addr), s, maxlen);break;case...