sta 727 src/simh/sim_sock.c int fl, sta; sta 732 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK); /* set nonblock */ sta 733 src/simh/sim_sock.c if (sta == -1) sta 737 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, getpid()); /* set ownership */ sta 738 src/simh/sim_sock.c if (sta == -1) sta 749 src/simh/sim_sock.c int sta; sta 752 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay)); sta 753 src/simh/sim_sock.c if (sta == -1) sta 758 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay)); sta 759 src/simh/sim_sock.c if (sta == -1) sta 765 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay)); sta 766 src/simh/sim_sock.c if (sta == -1) sta 770 src/simh/sim_sock.c return sta; sta 800 src/simh/sim_sock.c int sta; sta 858 src/simh/sim_sock.c sta = setsockopt (newsock, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&off, sizeof(off)); sta 864 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on)); sta 870 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *)&on, sizeof(on)); sta 873 src/simh/sim_sock.c sta = bind (newsock, preferred->ai_addr, preferred->ai_addrlen); sta 875 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* bind error? */ sta 878 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 879 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 882 src/simh/sim_sock.c sta = listen (newsock, 64); /* listen on socket */ sta 883 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* listen error? */ sta 893 src/simh/sim_sock.c int sta; sta 932 src/simh/sim_sock.c sta = bind (newsock, source->ai_addr, source->ai_addrlen); sta 935 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* bind error? */ sta 950 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 951 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* fcntl error? */ sta 957 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nodelay */ sta 958 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* setsock error? */ sta 967 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 968 src/simh/sim_sock.c if (sta == -1) sta 972 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 973 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 976 src/simh/sim_sock.c sta = connect (newsock, result->ai_addr, result->ai_addrlen); sta 978 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { sta 1001 src/simh/sim_sock.c int sta = 0, err; sta 1036 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 1037 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 1042 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nonblocking */ sta 1043 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* setsockopt error? */ sta 1048 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 1049 src/simh/sim_sock.c if (sta == -1)