sin 181 src/simh/sim_sock.c struct sockaddr_in *sin; sin 307 src/simh/sim_sock.c sin = (struct sockaddr_in *)ai->ai_addr; sin 308 src/simh/sim_sock.c sin->sin_family = PF_INET; sin 309 src/simh/sim_sock.c sin->sin_port = (unsigned short)port; sin 310 src/simh/sim_sock.c memcpy(&sin->sin_addr, *ip, sizeof(sin->sin_addr)); sin 340 src/simh/sim_sock.c const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; sin 342 src/simh/sim_sock.c if (sin->sin_family != PF_INET) sin 351 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "udp"); sin 353 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "tcp"); sin 362 src/simh/sim_sock.c sprintf(buf, "%d", ntohs(sin->sin_port)); sin 372 src/simh/sim_sock.c he = gethostbyaddr((const char *)&sin->sin_addr, 4, AF_INET); sin 381 src/simh/sim_sock.c if (hostlen < strlen(inet_ntoa(sin->sin_addr))+1) sin 383 src/simh/sim_sock.c strcpy(host, inet_ntoa(sin->sin_addr));