sock             1291 src/dps8/dps8_mgp.c   int slen, sock;
sock             1294 src/dps8/dps8_mgp.c   if (( sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
sock             1300 src/dps8/dps8_mgp.c       return sock;
sock             1307 src/dps8/dps8_mgp.c   if (connect(sock, (struct sockaddr *)&server, slen) < 0)
sock             1312 src/dps8/dps8_mgp.c       close(sock);
sock             1313 src/dps8/dps8_mgp.c       sock = 0;
sock             1316 src/dps8/dps8_mgp.c   return sock;
sock              102 src/dps8/udplib.c     int       sock;
sock              256 src/dps8/udplib.c     int sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP);
sock              257 src/dps8/udplib.c     if (sock == -1)
sock              260 src/dps8/udplib.c     rc = fcntl (sock, F_SETFL, fcntl (sock, F_GETFL, 0) | O_NONBLOCK);
sock              271 src/dps8/udplib.c     rc = bind (sock, (struct sockaddr *) & si_me, sizeof (si_me));
sock              285 src/dps8/udplib.c     rc = connect (sock, ai -> ai_addr, sizeof (struct sockaddr));
sock              291 src/dps8/udplib.c     udp_links [link] . sock = sock;
sock              323 src/dps8/udplib.c     close (udp_links [link] . sock);
sock              370 src/dps8/udplib.c     ssize_t rc = send (udp_links [link] . sock, & pkt, (size_t) pktlen, 0);
sock              410 src/dps8/udplib.c     ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz);
sock             1034 src/simh/sim_console.c     !sim_rem_con_tmxr.ldsc[0].sock)                     /* Master Connection lost? */
sock             1556 src/simh/sim_console.c         if (sim_con_ldsc.sock == 0)
sock              717 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock)
sock              721 src/simh/sim_sock.c return ioctlsocket (sock, FIONBIO, &non_block);         /* set nonblocking */
sock              725 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock)
sock              729 src/simh/sim_sock.c fl = fcntl (sock, F_GETFL,0);                           /* get flags */
sock              732 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK);           /* set nonblock */
sock              737 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, getpid());                 /* set ownership */
sock              746 src/simh/sim_sock.c static int sim_setnodelay (SOCKET sock)
sock              752 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay));
sock              758 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay));
sock              765 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay));
sock             1055 src/simh/sim_sock.c int sim_check_conn (SOCKET sock, int rd)
sock             1071 src/simh/sim_sock.c FD_SET (sock, rw_p);
sock             1072 src/simh/sim_sock.c FD_SET (sock, er_p);
sock             1074 src/simh/sim_sock.c     select ((int) sock + 1, rw_p, NULL, er_p, &zero);
sock             1076 src/simh/sim_sock.c     select ((int) sock + 1, NULL, rw_p, er_p, &zero);
sock             1077 src/simh/sim_sock.c if (FD_ISSET (sock, er_p))
sock             1079 src/simh/sim_sock.c if (FD_ISSET (sock, rw_p)) {
sock             1080 src/simh/sim_sock.c     if (0 == getpeername (sock, (struct sockaddr *)&peername, &peernamesize))
sock             1113 src/simh/sim_sock.c int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf)
sock             1130 src/simh/sim_sock.c getsockname (sock, (struct sockaddr *)&sockname, &socknamesize);
sock             1131 src/simh/sim_sock.c getpeername (sock, (struct sockaddr *)&peername, &peernamesize);
sock             1143 src/simh/sim_sock.c int sim_read_sock (SOCKET sock, char *buf, int nbytes)
sock             1147 src/simh/sim_sock.c rbytes = recv (sock, buf, nbytes, 0);
sock             1170 src/simh/sim_sock.c int sim_write_sock (SOCKET sock, const char *msg, int nbytes)
sock             1172 src/simh/sim_sock.c int err, sbytes = send (sock, msg, nbytes, 0);
sock             1186 src/simh/sim_sock.c void sim_close_sock (SOCKET sock)
sock             1188 src/simh/sim_sock.c shutdown(sock, SD_BOTH);
sock             1189 src/simh/sim_sock.c closesocket (sock);
sock              110 src/simh/sim_sock.h int sim_check_conn (SOCKET sock, int rd);
sock              111 src/simh/sim_sock.h int sim_read_sock (SOCKET sock, char *buf, int nbytes);
sock              112 src/simh/sim_sock.h int sim_write_sock (SOCKET sock, const char *msg, int nbytes);
sock              113 src/simh/sim_sock.h void sim_close_sock (SOCKET sock);
sock              115 src/simh/sim_sock.h SOCKET sim_err_sock (SOCKET sock, const char *emsg);
sock              116 src/simh/sim_sock.h int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf);
sock              501 src/simh/sim_tmxr.c     return sim_read_sock (lp->sock, &(lp->rxb[i]), length);
sock              519 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length);
sock              985 src/simh/sim_tmxr.c             lp->sock = newsock;                         /* save socket */
sock             1048 src/simh/sim_tmxr.c                             lp->sock = lp->connecting;          /* it now looks normal */
sock             1069 src/simh/sim_tmxr.c                             sim_getnames_sock (lp->sock, &sockname, &peername);
sock             1119 src/simh/sim_tmxr.c                                 lp->sock = newsock;                 /* save socket */
sock             1161 src/simh/sim_tmxr.c     if (lp->destination && (!lp->sock) && (!lp->connecting) &&
sock             1189 src/simh/sim_tmxr.c     if (lp->sock) {
sock             1190 src/simh/sim_tmxr.c         sim_close_sock (lp->sock);                      /* close socket */
sock             1193 src/simh/sim_tmxr.c         lp->sock = 0;
sock             1253 src/simh/sim_tmxr.c if ((lp->sock) || (lp->loopback)) {
sock             1280 src/simh/sim_tmxr.c             lp->sock = lp->mp->ring_sock;               /* save socket */
sock             1288 src/simh/sim_tmxr.c                 sim_write_sock (lp->sock, (char *)mantra, sizeof(mantra));
sock             1340 src/simh/sim_tmxr.c         if ((lp->sock) || (lp->connecting)) {
sock             1342 src/simh/sim_tmxr.c                 if (lp->sock)
sock             1364 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {
sock             1366 src/simh/sim_tmxr.c         if (lp->sock)
sock             1588 src/simh/sim_tmxr.c     if (!(lp->sock
sock             2053 src/simh/sim_tmxr.c if (lp->sock) {                             /* if existing tcp, drop it */
sock             2061 src/simh/sim_tmxr.c         lp->sock = lp->connecting;
sock             2183 src/simh/sim_tmxr.c SOCKET sock;
sock             2332 src/simh/sim_tmxr.c         sock = sim_master_sock (port, &r);                      /* make master socket to validate port */
sock             2335 src/simh/sim_tmxr.c         if (sock == INVALID_SOCKET)                             /* open error */
sock             2337 src/simh/sim_tmxr.c         sim_close_sock (sock);
sock             2375 src/simh/sim_tmxr.c             sock = sim_connect_sock_ex (NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) |
sock             2378 src/simh/sim_tmxr.c             if (sock != INVALID_SOCKET)
sock             2379 src/simh/sim_tmxr.c                 sim_close_sock (sock);
sock             2505 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2508 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2531 src/simh/sim_tmxr.c             mp->master = sock;                              /* save master socket */
sock             2544 src/simh/sim_tmxr.c                 lp->sock = 0;                               /* clear the socket */
sock             2584 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2588 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2606 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2623 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             2725 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2728 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2746 src/simh/sim_tmxr.c             lp->master = sock;                              /* save master socket */
sock             2774 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2776 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2793 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2810 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             3110 src/simh/sim_tmxr.c             if ((!lp->sock) && (!lp->connecting)
sock             3139 src/simh/sim_tmxr.c     if (!lp->destination && lp->sock) {                 /* not serial and is connected? */
sock             3144 src/simh/sim_tmxr.c         if (lp->sock) {
sock             3151 src/simh/sim_tmxr.c             lp->sock = lp->connecting;
sock             3444 src/simh/sim_tmxr.c void tmxr_msg (SOCKET sock, const char *msg)
sock             3446 src/simh/sim_tmxr.c if ((sock) && (sock != INVALID_SOCKET))
sock             3447 src/simh/sim_tmxr.c     sim_write_sock (sock, msg, (int32)strlen (msg));
sock             3542 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {                   /* tcp connection? */
sock             3554 src/simh/sim_tmxr.c if (lp->sock) {
sock             3557 src/simh/sim_tmxr.c     sim_getnames_sock (lp->sock, &sockname, &peername);
sock             3586 src/simh/sim_tmxr.c   (lp->sock) && (!lp->datagram))
sock             3606 src/simh/sim_tmxr.c if ((!lp->sock) && (!lp->connecting)
sock             3675 src/simh/sim_tmxr.c if ((lp->sock)
sock             3946 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3966 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3968 src/simh/sim_tmxr.c         if ((mp->ldsc[i].sock != 0)
sock             3974 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);