sta 720 src/simh/sim_sock.c int fl, sta; sta 725 src/simh/sim_sock.c sta = fcntl (sock, F_SETFL, fl | O_NONBLOCK); /* set nonblock */ sta 726 src/simh/sim_sock.c if (sta == -1) sta 730 src/simh/sim_sock.c sta = fcntl (sock, F_SETOWN, getpid()); /* set ownership */ sta 731 src/simh/sim_sock.c if (sta == -1) sta 742 src/simh/sim_sock.c int sta; sta 745 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, sizeof(nodelay)); sta 746 src/simh/sim_sock.c if (sta == -1) sta 751 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_NODELAYACK, (char *)&nodelay, sizeof(nodelay)); sta 752 src/simh/sim_sock.c if (sta == -1) sta 758 src/simh/sim_sock.c sta = setsockopt (sock, IPPROTO_TCP, TCP_QUICKACK, (char *)&nodelay, sizeof(nodelay)); sta 759 src/simh/sim_sock.c if (sta == -1) sta 763 src/simh/sim_sock.c return sta; sta 793 src/simh/sim_sock.c int sta; sta 851 src/simh/sim_sock.c sta = setsockopt (newsock, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&off, sizeof(off)); sta 857 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on)); sta 863 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *)&on, sizeof(on)); sta 866 src/simh/sim_sock.c sta = bind (newsock, preferred->ai_addr, preferred->ai_addrlen); sta 868 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* bind error? */ sta 871 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 872 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 875 src/simh/sim_sock.c sta = listen (newsock, 1); /* listen on socket */ sta 876 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* listen error? */ sta 884 src/simh/sim_sock.c int sta; sta 924 src/simh/sim_sock.c sta = bind (newsock, source->ai_addr, source->ai_addrlen); sta 927 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* bind error? */ sta 942 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 943 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* fcntl error? */ sta 949 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nodelay */ sta 950 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { /* setsock error? */ sta 959 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 960 src/simh/sim_sock.c if (sta == -1) sta 964 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 965 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 968 src/simh/sim_sock.c sta = connect (newsock, result->ai_addr, result->ai_addrlen); sta 970 src/simh/sim_sock.c if (sta == SOCKET_ERROR) { sta 993 src/simh/sim_sock.c int sta = 0, err; sta 1028 src/simh/sim_sock.c sta = sim_setnonblock (newsock); /* set nonblocking */ sta 1029 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* fcntl error? */ sta 1034 src/simh/sim_sock.c sta = sim_setnodelay (newsock); /* set nonblocking */ sta 1035 src/simh/sim_sock.c if (sta == SOCKET_ERROR) /* setsockopt error? */ sta 1040 src/simh/sim_sock.c sta = setsockopt (newsock, SOL_SOCKET, SO_KEEPALIVE, (char *)&keepalive, sizeof(keepalive)); sta 1041 src/simh/sim_sock.c if (sta == -1)