ns-allinone-2.35/ns-2.35/emulate/net-ip.cc
int
IPNetwork::close()
{
	if (ssock_ >= 0) {
		(void)::close(ssock_);
		ssock_ = -1;
	}
	if (rsock_ >= 0) {
		(void)::close(rsock_);
		rsock_ = -1;
	}
	return (0);
}
/*
 * close both sending and receiving sockets
 */
close both sending and receiving sockets
close both sending and receiving sockets
int
IPNetwork::close()
{
	if (ssock_ >= 0) {
		(void)::close(ssock_);
		ssock_ = -1;
	}
	if (rsock_ >= 0) {
		(void)::close(rsock_);
		rsock_ = -1;
	}
	return (0);
}
int IPNetwork :: close ( ) { if ( ssock_ >= 0 ) { ( void ) :: close ( ssock_ ) ; ssock_ = -1 ; } if ( rsock_ >= 0 ) { ( void ) :: close ( rsock_ ) ; rsock_ = -1 ; } return ( 0 ) ; }
close both sending and receiving sockets
close both sending and receiving sockets