sin 182 src/simh/sim_sock.c struct sockaddr_in *sin; sin 308 src/simh/sim_sock.c sin = (struct sockaddr_in *)ai->ai_addr; sin 309 src/simh/sim_sock.c sin->sin_family = PF_INET; sin 310 src/simh/sim_sock.c sin->sin_port = (unsigned short)port; sin 311 src/simh/sim_sock.c memcpy(&sin->sin_addr, *ip, sizeof(sin->sin_addr)); sin 341 src/simh/sim_sock.c const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; sin 343 src/simh/sim_sock.c if (sin->sin_family != PF_INET) sin 352 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "udp"); sin 354 src/simh/sim_sock.c se = getservbyport(sin->sin_port, "tcp"); sin 363 src/simh/sim_sock.c sprintf(buf, "%d", ntohs(sin->sin_port)); sin 373 src/simh/sim_sock.c he = gethostbyaddr((const char *)&sin->sin_addr, 4, AF_INET); sin 382 src/simh/sim_sock.c if (hostlen < strlen(inet_ntoa(sin->sin_addr))+1) sin 384 src/simh/sim_sock.c strcpy(host, inet_ntoa(sin->sin_addr));