sock 99 src/dps8/udplib.c int sock; sock 251 src/dps8/udplib.c int sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP); sock 252 src/dps8/udplib.c if (sock == -1) sock 255 src/dps8/udplib.c rc = fcntl (sock, F_SETFL, fcntl (sock, F_GETFL, 0) | O_NONBLOCK); sock 266 src/dps8/udplib.c rc = bind (sock, (struct sockaddr *) & si_me, sizeof (si_me)); sock 280 src/dps8/udplib.c rc = connect (sock, ai -> ai_addr, sizeof (struct sockaddr)); sock 286 src/dps8/udplib.c udp_links [link] . sock = sock; sock 315 src/dps8/udplib.c close (udp_links [link] . sock); sock 362 src/dps8/udplib.c ssize_t rc = send (udp_links [link] . sock, & pkt, (size_t) pktlen, 0); sock 401 src/dps8/udplib.c ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz); sock 1016 src/simh/sim_console.c !sim_rem_con_tmxr.ldsc[0].sock) /* Master Connection lost? */ sock 1532 src/simh/sim_console.c if (sim_con_ldsc.sock == 0) sock 710 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock) sock 714 src/simh/sim_sock.c return ioctlsocket (sock, FIONBIO, &non_block); /* set nonblocking */ sock 718 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock) sock 722 src/simh/sim_sock.c fl = fcntl (sock, F_GETFL,0); /* get flags */ sock 725 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK); /* set nonblock */ sock 730 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, getpid()); /* set ownership */ sock 739 src/simh/sim_sock.c static int sim_setnodelay (SOCKET sock) sock 745 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay)); sock 751 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay)); sock 758 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay)); sock 1047 src/simh/sim_sock.c int sim_check_conn (SOCKET sock, int rd) sock 1063 src/simh/sim_sock.c FD_SET (sock, rw_p); sock 1064 src/simh/sim_sock.c FD_SET (sock, er_p); sock 1066 src/simh/sim_sock.c select ((int) sock + 1, rw_p, NULL, er_p, &zero); sock 1068 src/simh/sim_sock.c select ((int) sock + 1, NULL, rw_p, er_p, &zero); sock 1069 src/simh/sim_sock.c if (FD_ISSET (sock, er_p)) sock 1071 src/simh/sim_sock.c if (FD_ISSET (sock, rw_p)) { sock 1072 src/simh/sim_sock.c if (0 == getpeername (sock, (struct sockaddr *)&peername, &peernamesize)) sock 1105 src/simh/sim_sock.c int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf) sock 1122 src/simh/sim_sock.c getsockname (sock, (struct sockaddr *)&sockname, &socknamesize); sock 1123 src/simh/sim_sock.c getpeername (sock, (struct sockaddr *)&peername, &peernamesize); sock 1135 src/simh/sim_sock.c int sim_read_sock (SOCKET sock, char *buf, int nbytes) sock 1139 src/simh/sim_sock.c rbytes = recv (sock, buf, nbytes, 0); sock 1162 src/simh/sim_sock.c int sim_write_sock (SOCKET sock, const char *msg, int nbytes) sock 1164 src/simh/sim_sock.c int err, sbytes = send (sock, msg, nbytes, 0); sock 1178 src/simh/sim_sock.c void sim_close_sock (SOCKET sock) sock 1180 src/simh/sim_sock.c shutdown(sock, SD_BOTH); sock 1181 src/simh/sim_sock.c closesocket (sock); sock 100 src/simh/sim_sock.h int sim_check_conn (SOCKET sock, int rd); sock 101 src/simh/sim_sock.h int sim_read_sock (SOCKET sock, char *buf, int nbytes); sock 102 src/simh/sim_sock.h int sim_write_sock (SOCKET sock, const char *msg, int nbytes); sock 103 src/simh/sim_sock.h void sim_close_sock (SOCKET sock); sock 105 src/simh/sim_sock.h SOCKET sim_err_sock (SOCKET sock, const char *emsg); sock 106 src/simh/sim_sock.h int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf); sock 493 src/simh/sim_tmxr.c return sim_read_sock (lp->sock, &(lp->rxb[i]), length); sock 511 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length); sock 909 src/simh/sim_tmxr.c lp->sock = newsock; /* save socket */ sock 972 src/simh/sim_tmxr.c lp->sock = lp->connecting; /* it now looks normal */ sock 993 src/simh/sim_tmxr.c sim_getnames_sock (lp->sock, &sockname, &peername); sock 1036 src/simh/sim_tmxr.c lp->sock = newsock; /* save socket */ sock 1078 src/simh/sim_tmxr.c if (lp->destination && (!lp->sock) && (!lp->connecting) && sock 1104 src/simh/sim_tmxr.c if (lp->sock) { sock 1105 src/simh/sim_tmxr.c sim_close_sock (lp->sock); /* close socket */ sock 1108 src/simh/sim_tmxr.c lp->sock = 0; sock 1166 src/simh/sim_tmxr.c if ((lp->sock) sock 1193 src/simh/sim_tmxr.c lp->sock = lp->mp->ring_sock; /* save socket */ sock 1201 src/simh/sim_tmxr.c sim_write_sock (lp->sock, (char *)mantra, sizeof(mantra)); sock 1252 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) { sock 1254 src/simh/sim_tmxr.c if (lp->sock) sock 1274 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) { sock 1276 src/simh/sim_tmxr.c if (lp->sock) sock 1498 src/simh/sim_tmxr.c if (!(lp->sock sock 1963 src/simh/sim_tmxr.c if (lp->sock) { /* if existing tcp, drop it */ sock 1971 src/simh/sim_tmxr.c lp->sock = lp->connecting; sock 2093 src/simh/sim_tmxr.c SOCKET sock; sock 2242 src/simh/sim_tmxr.c sock = sim_master_sock (port, &r); /* make master socket to validate port */ sock 2245 src/simh/sim_tmxr.c if (sock == INVALID_SOCKET) /* open error */ sock 2247 src/simh/sim_tmxr.c sim_close_sock (sock); sock 2285 src/simh/sim_tmxr.c sock = sim_connect_sock_ex (NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | sock 2288 src/simh/sim_tmxr.c if (sock != INVALID_SOCKET) sock 2289 src/simh/sim_tmxr.c sim_close_sock (sock); sock 2415 src/simh/sim_tmxr.c sock = sim_master_sock (listen, &r); /* make master socket */ sock 2418 src/simh/sim_tmxr.c if (sock == INVALID_SOCKET) /* open error */ sock 2441 src/simh/sim_tmxr.c mp->master = sock; /* save master socket */ sock 2454 src/simh/sim_tmxr.c lp->sock = 0; /* clear the socket */ sock 2494 src/simh/sim_tmxr.c sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | sock 2497 src/simh/sim_tmxr.c if (sock != INVALID_SOCKET) { sock 2515 src/simh/sim_tmxr.c lp->connecting = sock; sock 2532 src/simh/sim_tmxr.c sim_close_sock (sock); sock 2632 src/simh/sim_tmxr.c sock = sim_master_sock (listen, &r); /* make master socket */ sock 2635 src/simh/sim_tmxr.c if (sock == INVALID_SOCKET) /* open error */ sock 2653 src/simh/sim_tmxr.c lp->master = sock; /* save master socket */ sock 2681 src/simh/sim_tmxr.c sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) | (packet ? SIM_SOCK_OPT_NODELAY : 0)); sock 2682 src/simh/sim_tmxr.c if (sock != INVALID_SOCKET) { sock 2699 src/simh/sim_tmxr.c lp->connecting = sock; sock 2716 src/simh/sim_tmxr.c sim_close_sock (sock); sock 3013 src/simh/sim_tmxr.c if ((!lp->sock) && (!lp->connecting) sock 3042 src/simh/sim_tmxr.c if (!lp->destination && lp->sock) { /* not serial and is connected? */ sock 3047 src/simh/sim_tmxr.c if (lp->sock) { sock 3054 src/simh/sim_tmxr.c lp->sock = lp->connecting; sock 3347 src/simh/sim_tmxr.c void tmxr_msg (SOCKET sock, const char *msg) sock 3349 src/simh/sim_tmxr.c if ((sock) && (sock != INVALID_SOCKET)) sock 3350 src/simh/sim_tmxr.c sim_write_sock (sock, msg, (int32)strlen (msg)); sock 3443 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) { /* tcp connection? */ sock 3455 src/simh/sim_tmxr.c if (lp->sock) { sock 3458 src/simh/sim_tmxr.c sim_getnames_sock (lp->sock, &sockname, &peername); sock 3487 src/simh/sim_tmxr.c (lp->sock) && (!lp->datagram)) sock 3507 src/simh/sim_tmxr.c if ((!lp->sock) && (!lp->connecting) sock 3576 src/simh/sim_tmxr.c if ((lp->sock) sock 3842 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) sock 3862 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) sock 3864 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) sock 3870 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) sock 125 src/simh/sim_tmxr.h SOCKET sock; /* connection socket */ sock 246 src/simh/sim_tmxr.h void tmxr_msg (SOCKET sock, const char *msg);