sin 184 src/simh/sim_sock.c struct sockaddr_in *sin; sin 310 src/simh/sim_sock.c sin = (struct sockaddr_in *)ai->ai_addr; sin 311 src/simh/sim_sock.c sin->sin_family = PF_INET; sin 312 src/simh/sim_sock.c sin->sin_port = (unsigned short)port; sin 313 src/simh/sim_sock.c memcpy(&sin->sin_addr, *ip, sizeof(sin->sin_addr)); sin 343 src/simh/sim_sock.c const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; sin 345 src/simh/sim_sock.c if (sin->sin_family != PF_INET) sin 354 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "udp"); sin 356 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "tcp"); sin 365 src/simh/sim_sock.c (void)sprintf(buf, "%d", ntohs(sin->sin_port)); sin 375 src/simh/sim_sock.c he = gethostbyaddr((const char *)&sin->sin_addr, 4, AF_INET); sin 384 src/simh/sim_sock.c if (hostlen < strlen(inet_ntoa(sin->sin_addr))+1) sin 386 src/simh/sim_sock.c strcpy(host, inet_ntoa(sin->sin_addr));