ns-allinone-2.35/ns-2.35/dccp/dccp.cc
void DCCPAgent::listen(){
	if (state_ == DCCP_STATE_CLOSED){
		server_ = true;
		changeState(DCCP_STATE_LISTEN);
	} else
		debug("%f, DCCP(%s)::listen() - Listen called while in state %s (%d)\n",
		      now(), name(), stateAsStr(state_),state_);
		
}
/* Listen for incoming connections
 * Use close() to stop listen
 */
Listen for incoming connections
Use close() to stop listen
Listen for incoming connections Use close () to stop listen
void DCCPAgent::listen(){
	if (state_ == DCCP_STATE_CLOSED){
		server_ = true;
		changeState(DCCP_STATE_LISTEN);
	} else
		debug("%f, DCCP(%s)::listen() - Listen called while in state %s (%d)\n",
		      now(), name(), stateAsStr(state_),state_);
}
void DCCPAgent :: listen ( ) { if ( state_ == DCCP_STATE_CLOSED ) { server_ = true ; changeState ( DCCP_STATE_LISTEN ) ; } else debug ( " \n " , now ( ) , name ( ) , stateAsStr ( state_ ) , state_ ) ; }
Listen for incoming connections
 Use close() to stop listen
Listen for incoming connections Use close () to stop listen