sock             1290 src/dps8/dps8_mgp.c   int slen, sock;
sock             1293 src/dps8/dps8_mgp.c   if (( sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
sock             1299 src/dps8/dps8_mgp.c       return sock;
sock             1306 src/dps8/dps8_mgp.c   if (connect(sock, (struct sockaddr *)&server, slen) < 0)
sock             1311 src/dps8/dps8_mgp.c       close(sock);
sock             1312 src/dps8/dps8_mgp.c       sock = 0;
sock             1315 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             1035 src/simh/sim_console.c     !sim_rem_con_tmxr.ldsc[0].sock)                     /* Master Connection lost? */
sock             1557 src/simh/sim_console.c         if (sim_con_ldsc.sock == 0)
sock              723 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock)
sock              727 src/simh/sim_sock.c return ioctlsocket (sock, FIONBIO, &non_block);         /* set nonblocking */
sock              731 src/simh/sim_sock.c static int sim_setnonblock (SOCKET sock)
sock              735 src/simh/sim_sock.c fl = fcntl (sock, F_GETFL,0);                           /* get flags */
sock              738 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK);           /* set nonblock */
sock              743 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, _sir_getpid());                 /* set ownership */
sock              752 src/simh/sim_sock.c static int sim_setnodelay (SOCKET sock)
sock              758 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay));
sock              764 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay));
sock              771 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay));
sock             1061 src/simh/sim_sock.c int sim_check_conn (SOCKET sock, int rd)
sock             1077 src/simh/sim_sock.c FD_SET (sock, rw_p);
sock             1078 src/simh/sim_sock.c FD_SET (sock, er_p);
sock             1080 src/simh/sim_sock.c     select ((int) sock + 1, rw_p, NULL, er_p, &zero);
sock             1082 src/simh/sim_sock.c     select ((int) sock + 1, NULL, rw_p, er_p, &zero);
sock             1083 src/simh/sim_sock.c if (FD_ISSET (sock, er_p))
sock             1085 src/simh/sim_sock.c if (FD_ISSET (sock, rw_p)) {
sock             1086 src/simh/sim_sock.c     if (0 == getpeername (sock, (struct sockaddr *)&peername, &peernamesize))
sock             1119 src/simh/sim_sock.c int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf)
sock             1136 src/simh/sim_sock.c getsockname (sock, (struct sockaddr *)&sockname, &socknamesize);
sock             1137 src/simh/sim_sock.c getpeername (sock, (struct sockaddr *)&peername, &peernamesize);
sock             1149 src/simh/sim_sock.c int sim_read_sock (SOCKET sock, char *buf, int nbytes)
sock             1153 src/simh/sim_sock.c rbytes = recv (sock, buf, nbytes, 0);
sock             1176 src/simh/sim_sock.c int sim_write_sock (SOCKET sock, const char *msg, int nbytes)
sock             1178 src/simh/sim_sock.c int err, sbytes = send (sock, msg, nbytes, 0);
sock             1192 src/simh/sim_sock.c void sim_close_sock (SOCKET sock)
sock             1194 src/simh/sim_sock.c shutdown(sock, SD_BOTH);
sock             1195 src/simh/sim_sock.c closesocket (sock);
sock              114 src/simh/sim_sock.h int sim_check_conn (SOCKET sock, int rd);
sock              115 src/simh/sim_sock.h int sim_read_sock (SOCKET sock, char *buf, int nbytes);
sock              116 src/simh/sim_sock.h int sim_write_sock (SOCKET sock, const char *msg, int nbytes);
sock              117 src/simh/sim_sock.h void sim_close_sock (SOCKET sock);
sock              119 src/simh/sim_sock.h SOCKET sim_err_sock (SOCKET sock, const char *emsg);
sock              120 src/simh/sim_sock.h int sim_getnames_sock (SOCKET sock, char **socknamebuf, char **peernamebuf);
sock              502 src/simh/sim_tmxr.c     return sim_read_sock (lp->sock, &(lp->rxb[i]), length);
sock              520 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length);
sock              976 src/simh/sim_tmxr.c             lp->sock = newsock;                         /* save socket */
sock             1039 src/simh/sim_tmxr.c                             lp->sock = lp->connecting;          /* it now looks normal */
sock             1060 src/simh/sim_tmxr.c                             sim_getnames_sock (lp->sock, &sockname, &peername);
sock             1110 src/simh/sim_tmxr.c                                 lp->sock = newsock;                 /* save socket */
sock             1152 src/simh/sim_tmxr.c     if (lp->destination && (!lp->sock) && (!lp->connecting) &&
sock             1180 src/simh/sim_tmxr.c     if (lp->sock) {
sock             1181 src/simh/sim_tmxr.c         sim_close_sock (lp->sock);                      /* close socket */
sock             1184 src/simh/sim_tmxr.c         lp->sock = 0;
sock             1244 src/simh/sim_tmxr.c if ((lp->sock) || (lp->loopback)) {
sock             1271 src/simh/sim_tmxr.c             lp->sock = lp->mp->ring_sock;               /* save socket */
sock             1279 src/simh/sim_tmxr.c                 sim_write_sock (lp->sock, (char *)mantra, sizeof(mantra));
sock             1331 src/simh/sim_tmxr.c         if ((lp->sock) || (lp->connecting)) {
sock             1333 src/simh/sim_tmxr.c                 if (lp->sock)
sock             1355 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {
sock             1357 src/simh/sim_tmxr.c         if (lp->sock)
sock             1579 src/simh/sim_tmxr.c     if (!(lp->sock
sock             2044 src/simh/sim_tmxr.c if (lp->sock) {                             /* if existing tcp, drop it */
sock             2052 src/simh/sim_tmxr.c         lp->sock = lp->connecting;
sock             2174 src/simh/sim_tmxr.c SOCKET sock;
sock             2323 src/simh/sim_tmxr.c         sock = sim_master_sock (port, &r);                      /* make master socket to validate port */
sock             2326 src/simh/sim_tmxr.c         if (sock == INVALID_SOCKET)                             /* open error */
sock             2328 src/simh/sim_tmxr.c         sim_close_sock (sock);
sock             2366 src/simh/sim_tmxr.c             sock = sim_connect_sock_ex (NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) |
sock             2369 src/simh/sim_tmxr.c             if (sock != INVALID_SOCKET)
sock             2370 src/simh/sim_tmxr.c                 sim_close_sock (sock);
sock             2496 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2499 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2522 src/simh/sim_tmxr.c             mp->master = sock;                              /* save master socket */
sock             2535 src/simh/sim_tmxr.c                 lp->sock = 0;                               /* clear the socket */
sock             2575 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2579 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2597 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2614 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             2716 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2719 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2737 src/simh/sim_tmxr.c             lp->master = sock;                              /* save master socket */
sock             2765 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2767 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2784 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2801 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             3101 src/simh/sim_tmxr.c             if ((!lp->sock) && (!lp->connecting)
sock             3130 src/simh/sim_tmxr.c     if (!lp->destination && lp->sock) {                 /* not serial and is connected? */
sock             3135 src/simh/sim_tmxr.c         if (lp->sock) {
sock             3142 src/simh/sim_tmxr.c             lp->sock = lp->connecting;
sock             3435 src/simh/sim_tmxr.c void tmxr_msg (SOCKET sock, const char *msg)
sock             3437 src/simh/sim_tmxr.c if ((sock) && (sock != INVALID_SOCKET))
sock             3438 src/simh/sim_tmxr.c     sim_write_sock (sock, msg, (int32)strlen (msg));
sock             3533 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {                   /* tcp connection? */
sock             3545 src/simh/sim_tmxr.c if (lp->sock) {
sock             3548 src/simh/sim_tmxr.c     sim_getnames_sock (lp->sock, &sockname, &peername);
sock             3577 src/simh/sim_tmxr.c   (lp->sock) && (!lp->datagram))
sock             3597 src/simh/sim_tmxr.c if ((!lp->sock) && (!lp->connecting)
sock             3666 src/simh/sim_tmxr.c if ((lp->sock)
sock             3937 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3957 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3959 src/simh/sim_tmxr.c         if ((mp->ldsc[i].sock != 0)
sock             3965 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);