sta 721 src/simh/sim_sock.c int fl, sta; sta 726 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK); /* set nonblock */ sta 727 src/simh/sim_sock.c if (sta == -1) sta 731 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, getpid()); /* set ownership */ sta 732 src/simh/sim_sock.c if (sta == -1) sta 743 src/simh/sim_sock.c int sta; sta 746 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay)); sta 747 src/simh/sim_sock.c if (sta == -1) sta 752 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay)); sta 753 src/simh/sim_sock.c if (sta == -1) sta 759 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay)); sta 760 src/simh/sim_sock.c if (sta == -1) sta 764 src/simh/sim_sock.c return sta; sta 794 src/simh/sim_sock.c int sta; sta 852 src/simh/sim_sock.c sta = setsockopt (newsock, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&off, sizeof(off)); sta 858 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on)); sta 864 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *)&on, sizeof(on)); sta 867 src/simh/sim_sock.c sta = bind (newsock, preferred->ai_addr, preferred->ai_addrlen); sta 869 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* bind error? */ sta 872 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 873 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 876 src/simh/sim_sock.c sta = listen (newsock, 1); /* listen on socket */ sta 877 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* listen error? */ sta 885 src/simh/sim_sock.c int sta; sta 925 src/simh/sim_sock.c sta = bind (newsock, source->ai_addr, source->ai_addrlen); sta 928 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* bind error? */ sta 943 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 944 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* fcntl error? */ sta 950 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nodelay */ sta 951 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* setsock error? */ sta 960 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 961 src/simh/sim_sock.c if (sta == -1) sta 965 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 966 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 969 src/simh/sim_sock.c sta = connect (newsock, result->ai_addr, result->ai_addrlen); sta 971 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { sta 994 src/simh/sim_sock.c int sta = 0, err; sta 1029 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 1030 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 1035 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nonblocking */ sta 1036 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* setsockopt error? */ sta 1041 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 1042 src/simh/sim_sock.c if (sta == -1)