ns-allinone-2.35/ns-2.35/dccp/dccp_tcplike.cc
void DCCPTCPlikeAgent::printSendRecvHistory(){
	struct dccp_tcplike_send_recv_hist_entry *elm = STAILQ_FIRST(&send_recv_hist_);
	if (elm == NULL)
		fprintf(stdout, "Packet history is empty (send recv)\n");
	else {
		fprintf(stdout, "Packet history (send recv):\n");
		while(elm != NULL){
			fprintf(stdout,"Packet: seq %d, type %s, ndp %d\n", elm->seq_num_, packetTypeAsStr(elm->type_), elm->ndp_);
			elm = STAILQ_NEXT(elm, linfo_);
		}
	}	
}
/* Prints the contents of the receive history */
Prints the contents of the receive history
Prints the contents of the receive history
void DCCPTCPlikeAgent::printSendRecvHistory(){
	struct dccp_tcplike_send_recv_hist_entry *elm = STAILQ_FIRST(&send_recv_hist_);
	if (elm == NULL)
		fprintf(stdout, "Packet history is empty (send recv)\n");
	else {
		fprintf(stdout, "Packet history (send recv):\n");
		while(elm != NULL){
			fprintf(stdout,"Packet: seq %d, type %s, ndp %d\n", elm->seq_num_, packetTypeAsStr(elm->type_), elm->ndp_);
			elm = STAILQ_NEXT(elm, linfo_);
		}
	}	
}
void DCCPTCPlikeAgent :: printSendRecvHistory ( ) { struct dccp_tcplike_send_recv_hist_entry * elm = STAILQ_FIRST ( & send_recv_hist_ ) ; if ( elm == NULL ) fprintf ( stdout , " \n " ) ; else { fprintf ( stdout , " \n " ) ; while ( elm != NULL ) { fprintf ( stdout , " \n " , elm -> seq_num_ , packetTypeAsStr ( elm -> type_ ) , elm -> ndp_ ) ; elm = STAILQ_NEXT ( elm , linfo_ ) ; } } }
Prints the contents of the receive history
Prints the contents of the receive history