Lines Matching refs:so_state
64 so->so_state = SS_NOFDREF;
76 if (so->so_state & SS_PROXIFIED)
415 DEBUG_MISC((dfd, " --- sowrite disconnected, so->so_state = %x, errno = %d\n",
416 so->so_state, errno));
442 if ((so->so_state & SS_FWDRAIN) && sb->sb_cc == 0)
609 so->so_state = SS_ISFCONNECTED; /* So that it gets select()ed */
648 so->so_state = (SS_FACCEPTCONN|flags);
733 so->so_state &= ~(SS_NOFDREF|SS_ISFCONNECTED|SS_FCANTRCVMORE|
735 so->so_state |= SS_ISFCONNECTING; /* Clobber other states */
741 so->so_state &= ~(SS_ISFCONNECTING|SS_FWDRAIN|SS_NOFDREF);
742 so->so_state |= SS_ISFCONNECTED; /* Clobber other states */
748 if ((so->so_state & SS_NOFDREF) == 0) {
754 so->so_state &= ~(SS_ISFCONNECTING);
755 if (so->so_state & SS_FCANTSENDMORE)
756 so->so_state = SS_NOFDREF; /* Don't select it */ /* XXX close() here as well? */
758 so->so_state |= SS_FCANTRCVMORE;
764 if ((so->so_state & SS_NOFDREF) == 0) {
773 so->so_state &= ~(SS_ISFCONNECTING);
774 if (so->so_state & SS_FCANTRCVMORE)
775 so->so_state = SS_NOFDREF; /* as above */
777 so->so_state |= SS_FCANTSENDMORE;
783 /* so->so_state &= ~(SS_ISFCONNECTING|SS_ISFCONNECTED); */
785 /* so->so_state = SS_ISFDISCONNECTED; */
799 so->so_state |= SS_FWDRAIN;