Lines Matching refs:so_state
59 so->so_state = SS_NOFDREF; in socreate()
408 so->so_state, errno)); in sowrite()
434 if ((so->so_state & SS_FWDRAIN) && sb->sb_cc == 0) in sowrite()
587 so->so_state = SS_ISFCONNECTED; /* So that it gets select()ed */ in sosendto()
626 so->so_state = (SS_FACCEPTCONN|flags); in solisten()
699 so->so_state &= ~(SS_NOFDREF|SS_ISFCONNECTED|SS_FCANTRCVMORE| in soisfconnecting()
701 so->so_state |= SS_ISFCONNECTING; /* Clobber other states */ in soisfconnecting()
707 so->so_state &= ~(SS_ISFCONNECTING|SS_FWDRAIN|SS_NOFDREF); in soisfconnected()
708 so->so_state |= SS_ISFCONNECTED; /* Clobber other states */ in soisfconnected()
714 if ((so->so_state & SS_NOFDREF) == 0) { in sofcantrcvmore()
720 so->so_state &= ~(SS_ISFCONNECTING); in sofcantrcvmore()
721 if (so->so_state & SS_FCANTSENDMORE) in sofcantrcvmore()
722 so->so_state = SS_NOFDREF; /* Don't select it */ /* XXX close() here as well? */ in sofcantrcvmore()
724 so->so_state |= SS_FCANTRCVMORE; in sofcantrcvmore()
730 if ((so->so_state & SS_NOFDREF) == 0) { in sofcantsendmore()
739 so->so_state &= ~(SS_ISFCONNECTING); in sofcantsendmore()
740 if (so->so_state & SS_FCANTRCVMORE) in sofcantsendmore()
741 so->so_state = SS_NOFDREF; /* as above */ in sofcantsendmore()
743 so->so_state |= SS_FCANTSENDMORE; in sofcantsendmore()
765 so->so_state |= SS_FWDRAIN; in sofwdrain()