ns-allinone-2.35/webcache/webtraf.cc
void WebTrafPool::launchResp(int obj_id, Node *svr_, Node *clnt_, Agent *tcp, Agent* snk, int size, int pid) {

	// Setup TCP connection and done
	Tcl::instance().evalf("%s launch-resp %d %d %s %s %s %s %d", 
			      name(), obj_id, pid, svr_->name(), clnt_->name(),
			      tcp->name(), snk->name(), size);

	// Debug only
	// $numPacket_ $objectId_ $pageId_ $sessionId_ [$ns_ now] src dst
#if 0
	printf("%d \t %d \t %d \t %d \t %g %d %d\n", size, obj, pg->id(), id_,
	       Scheduler::instance().clock(), 
	       src_->address(), pg->dst()->address());
	printf("** Tcp agents %d, Tcp sinks %d\n", nTcp(),nSink());
#endif
}
// Launch a request for a particular object
Launch a request for a particular object
Launch a request for a particular object
void WebTrafPool::launchResp(int obj_id, Node *svr_, Node *clnt_, Agent *tcp, Agent* snk, int size, int pid) {
	Tcl::instance().evalf("%s launch-resp %d %d %s %s %s %s %d", 
			      name(), obj_id, pid, svr_->name(), clnt_->name(),
			      tcp->name(), snk->name(), size);
#if 0
	printf("%d \t %d \t %d \t %d \t %g %d %d\n", size, obj, pg->id(), id_,
	       Scheduler::instance().clock(), 
	       src_->address(), pg->dst()->address());
	printf("** Tcp agents %d, Tcp sinks %d\n", nTcp(),nSink());
#endif
}
void WebTrafPool :: launchResp ( int obj_id , Node * svr_ , Node * clnt_ , Agent * tcp , Agent * snk , int size , int pid ) { Tcl :: instance ( ) . evalf ( " " , name ( ) , obj_id , pid , svr_ -> name ( ) , clnt_ -> name ( ) , tcp -> name ( ) , snk -> name ( ) , size ) ; #if 0 printf ( " \t \t \t \t \n " , size , obj , pg -> id ( ) , id_ , Scheduler :: instance ( ) . clock ( ) , src_ -> address ( ) , pg -> dst ( ) -> address ( ) ) ; printf ( " \n " , nTcp ( ) , nSink ( ) ) ; #endif }
Launch a request for a particular object
Launch a request for a particular object
// Setup TCP connection and done // Debug only // $numPacket_ $objectId_ $pageId_ $sessionId_ [$ns_ now] src dst