portnamebuf 1088 src/simh/sim_sock.c static int _sim_getaddrname (struct sockaddr *addr, size_t addrsize, char *hostnamebuf, char *portnamebuf) portnamebuf 1099 src/simh/sim_sock.c *portnamebuf = '\0'; portnamebuf 1105 src/simh/sim_sock.c ret = p_getnameinfo(addr, size, NULL, 0, portnamebuf, NI_MAXSERV, NI_NUMERICSERV); portnamebuf 1108 src/simh/sim_sock.c (void)sprintf(portnamebuf, "%d", (int)ntohs(((struct sockaddr_in *)addr)->s_port));