sofcantrcvmore(struct socket *so)

{

	if ((so->so_state & SS_NOFDREF) == 0) {

		shutdown(so->s,0);

		if(global_writefds) {

		  FD_CLR(so->s,global_writefds);

		}

	}

	so->so_state &= ~(SS_ISFCONNECTING);

	if (so->so_state & SS_FCANTSENDMORE) {

	   so->so_state &= SS_PERSISTENT_MASK;

	   so->so_state |= SS_NOFDREF; /* Don't select it */

	} else {

	   so->so_state |= SS_FCANTRCVMORE;

	}

}

sofcantrcvmore(struct socket *so)

{

	if ((so->so_state & SS_NOFDREF) == 0) {

		shutdown(so->s,0);

		if(global_writefds) {

		  FD_CLR(so->s,global_writefds);

		}

	}

	so->so_state &= ~(SS_ISFCONNECTING);

	if (so->so_state & SS_FCANTSENDMORE) {

	   so->so_state &= SS_PERSISTENT_MASK;

	   so->so_state |= SS_NOFDREF; 

	} else {

	   so->so_state |= SS_FCANTRCVMORE;

	}

}

FUNC_0(struct socket *VAR_0)

{

	if ((VAR_0->so_state & SS_NOFDREF) == 0) {

		shutdown(VAR_0->s,0);

		if(global_writefds) {

		  FD_CLR(VAR_0->s,global_writefds);

		}

	}

	VAR_0->so_state &= ~(SS_ISFCONNECTING);

	if (VAR_0->so_state & SS_FCANTSENDMORE) {

	   VAR_0->so_state &= SS_PERSISTENT_MASK;

	   VAR_0->so_state |= SS_NOFDREF; 

	} else {

	   VAR_0->so_state |= SS_FCANTRCVMORE;

	}

}

FUNC_0(struct socket *VAR_0)
{ if ((VAR_0->so_state & SS_NOFDREF) == 0) { shutdown(VAR_0->s,0); if(global_writefds) { FD_CLR(VAR_0->s,global_writefds); } } VAR_0->so_state &= ~(SS_ISFCONNECTING); if (VAR_0->so_state & SS_FCANTSENDMORE) { VAR_0->so_state &= SS_PERSISTENT_MASK; VAR_0->so_state |= SS_NOFDREF; } else { VAR_0->so_state |= SS_FCANTRCVMORE; } }