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