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              981 src/simh/sim_tmxr.c             lp->sock = newsock;                         /* save socket */
sock             1044 src/simh/sim_tmxr.c                             lp->sock = lp->connecting;          /* it now looks normal */
sock             1065 src/simh/sim_tmxr.c                             sim_getnames_sock (lp->sock, &sockname, &peername);
sock             1115 src/simh/sim_tmxr.c                                 lp->sock = newsock;                 /* save socket */
sock             1157 src/simh/sim_tmxr.c     if (lp->destination && (!lp->sock) && (!lp->connecting) &&
sock             1185 src/simh/sim_tmxr.c     if (lp->sock) {
sock             1186 src/simh/sim_tmxr.c         sim_close_sock (lp->sock);                      /* close socket */
sock             1189 src/simh/sim_tmxr.c         lp->sock = 0;
sock             1249 src/simh/sim_tmxr.c if ((lp->sock) || (lp->loopback)) {
sock             1276 src/simh/sim_tmxr.c             lp->sock = lp->mp->ring_sock;               /* save socket */
sock             1284 src/simh/sim_tmxr.c                 sim_write_sock (lp->sock, (char *)mantra, sizeof(mantra));
sock             1336 src/simh/sim_tmxr.c         if ((lp->sock) || (lp->connecting)) {
sock             1338 src/simh/sim_tmxr.c                 if (lp->sock)
sock             1360 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {
sock             1362 src/simh/sim_tmxr.c         if (lp->sock)
sock             1584 src/simh/sim_tmxr.c     if (!(lp->sock
sock             2049 src/simh/sim_tmxr.c if (lp->sock) {                             /* if existing tcp, drop it */
sock             2057 src/simh/sim_tmxr.c         lp->sock = lp->connecting;
sock             2179 src/simh/sim_tmxr.c SOCKET sock;
sock             2328 src/simh/sim_tmxr.c         sock = sim_master_sock (port, &r);                      /* make master socket to validate port */
sock             2331 src/simh/sim_tmxr.c         if (sock == INVALID_SOCKET)                             /* open error */
sock             2333 src/simh/sim_tmxr.c         sim_close_sock (sock);
sock             2371 src/simh/sim_tmxr.c             sock = sim_connect_sock_ex (NULL, hostport, "localhost", NULL, (datagram ? SIM_SOCK_OPT_DATAGRAM : 0) |
sock             2374 src/simh/sim_tmxr.c             if (sock != INVALID_SOCKET)
sock             2375 src/simh/sim_tmxr.c                 sim_close_sock (sock);
sock             2501 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2504 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2527 src/simh/sim_tmxr.c             mp->master = sock;                              /* save master socket */
sock             2540 src/simh/sim_tmxr.c                 lp->sock = 0;                               /* clear the socket */
sock             2580 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2584 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2602 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2619 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             2721 src/simh/sim_tmxr.c             sock = sim_master_sock (listen, &r);            /* make master socket */
sock             2724 src/simh/sim_tmxr.c             if (sock == INVALID_SOCKET)                     /* open error */
sock             2742 src/simh/sim_tmxr.c             lp->master = sock;                              /* save master socket */
sock             2770 src/simh/sim_tmxr.c                 sock = sim_connect_sock_ex (datagram ? listen : NULL, hostport, "localhost", NULL,
sock             2772 src/simh/sim_tmxr.c                 if (sock != INVALID_SOCKET) {
sock             2789 src/simh/sim_tmxr.c                         lp->connecting = sock;
sock             2806 src/simh/sim_tmxr.c                         sim_close_sock (sock);
sock             3106 src/simh/sim_tmxr.c             if ((!lp->sock) && (!lp->connecting)
sock             3135 src/simh/sim_tmxr.c     if (!lp->destination && lp->sock) {                 /* not serial and is connected? */
sock             3140 src/simh/sim_tmxr.c         if (lp->sock) {
sock             3147 src/simh/sim_tmxr.c             lp->sock = lp->connecting;
sock             3440 src/simh/sim_tmxr.c void tmxr_msg (SOCKET sock, const char *msg)
sock             3442 src/simh/sim_tmxr.c if ((sock) && (sock != INVALID_SOCKET))
sock             3443 src/simh/sim_tmxr.c     sim_write_sock (sock, msg, (int32)strlen (msg));
sock             3538 src/simh/sim_tmxr.c if ((lp->sock) || (lp->connecting)) {                   /* tcp connection? */
sock             3550 src/simh/sim_tmxr.c if (lp->sock) {
sock             3553 src/simh/sim_tmxr.c     sim_getnames_sock (lp->sock, &sockname, &peername);
sock             3582 src/simh/sim_tmxr.c   (lp->sock) && (!lp->datagram))
sock             3602 src/simh/sim_tmxr.c if ((!lp->sock) && (!lp->connecting)
sock             3671 src/simh/sim_tmxr.c if ((lp->sock)
sock             3942 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3962 src/simh/sim_tmxr.c     if ((mp->ldsc[i].sock != 0)
sock             3964 src/simh/sim_tmxr.c         if ((mp->ldsc[i].sock != 0)
sock             3970 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);