> prachi, thx a lot. I did exactly what u said.
> the error information is: invalid command name "Agent/TCP/Ptcp" while 
executing "Agent/TCP/Ptcp create _o140" invoked from within
> and surely i had added:
> static class PtcpTcpClass : public TclClass {public: PtcpTcpClass() : 
TclClass("Agent/TCP/Ptcp") {} TclObject* create(int, const char*const*) 
{    return (new PtcpTcpAgent()); }} class_ptcp;
> Reply From: 李晶 >Hi,>>

Does "xxx" is the name of your agent??

If yes then have you checked dependecies of our new file ( i.e. TCP-xxx.h 
&& .cc) through "make depend" command.>Here is the steps which are 
supossed to be performed.Here ptcp.h and ptcp.cc are example 
files.>>Follow these steps to compile modified source code.>1.Add 
ptcp.h and ptcp.cc to NSHomeDirectory\ns2.29\tcp\.>2.Replace tcp.h and 
tcp.cc in NSHomeDirectory\ns2.29\tcp\.>3.Replace tcp-sink.h and tcp-sink.cc 
in NSHomeDirectory\ns2.29\tcp\.>4.Replace ns_default.tcl in 
NSHomeDirectory\ns2.29\tcl\lib\.>5.Edit Makefile in NSHomeDirectory\ns2.29\ 
and add following lines to it. >    tcp/ptcp.o \>6. Run 
following commands at NSHomeDirectory\ns2.29\>    make 
clean>    make depend>    make>>I 
think this will help you. Even if it doesnt then there might be problem in your 
code itself.>>>>Prachi.>MTech (Computer Engg.)>>>锟筋晶 
wrote:
>I wrote a sub-agent of TCP, that means I put new files TCP-xxx.h, 
TCP-xxx.cc in the folder of TCP, and modified tcp.h, tcp-sink.h and 
tcp-sink.cc. Then add TCP_xxx.o to OBJ_CC in makefile.in, and then do 
"make">i try to use the agent with "New Agent/TCP/xxx", but it seems 
un-recognizable.>what's possibly the problem? >pls give me some ideas, 
thx a lot>-->USTC Alumni Email System >>>
> > 

Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low 
rates.>>--USTC Alumni Email System >>>>
--
USTC Alumni Email System 

Reply via email to