connectaddr 991 src/simh/sim_sock.c SOCKET sim_accept_conn_ex (SOCKET master, char **connectaddr, int opt_flags) connectaddr 1014 src/simh/sim_sock.c if (connectaddr != NULL) { connectaddr 1015 src/simh/sim_sock.c *connectaddr = (char *)calloc(1, NI_MAXHOST+1); connectaddr 1017 src/simh/sim_sock.c p_getnameinfo((struct sockaddr *)&clientname, size, *connectaddr, NI_MAXHOST, NULL, 0, NI_NUMERICHOST); connectaddr 1018 src/simh/sim_sock.c if (*connectaddr) connectaddr 1019 src/simh/sim_sock.c if (0 == memcmp("::ffff:", *connectaddr, 7)) /* is this a IPv4-mapped IPv6 address? */ connectaddr 1020 src/simh/sim_sock.c memmove(*connectaddr, 7+*connectaddr, /* prefer bare IPv4 address */ connectaddr 1021 src/simh/sim_sock.c strlen(*connectaddr) - 7 + 1); /* length to include terminating \0 */ connectaddr 1023 src/simh/sim_sock.c strcpy(*connectaddr, inet_ntoa(((struct sockaddr_in *)&connectaddr)->s_addr)); connectaddr 98 src/simh/sim_sock.h SOCKET sim_accept_conn_ex (SOCKET master, char **connectaddr, int opt_flags); connectaddr 99 src/simh/sim_sock.h # define sim_accept_conn(master, connectaddr) sim_accept_conn_ex(master, connectaddr, 0)