[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] BayTcp files created?




Yes, you are right; we need to IFDEF out those lines.
I'll post the patch on ns-problems' page right away.

Thanks,
--Padma

On Mon, 11 Jun 2001, Brian Lee Bowers wrote:


> On Monday 11 June 2001 14:45, you wrote:
> > On Mon, 11 Jun 2001, Michele Clark Weigle wrote:
> > >   I've updated to ns-2.1b8 and now, everytime I run a simulation,
> >
> > what simulation do you run?
>
> Looking at the code, it wouldn't matter which simulation.  Anything
> that starts ns should create those two files.  They are created
> during initialization of some static data members.  grep for fp_ in
> files under the ~ns/baytcp directory.  Three files should pop right
> out (ftp.h, ftps.cc and ftpc.cc).
>
> The files being opened are not currently being used, as far as I can
> tell.  There are lines to use fprintf on the files, but the lines are
> commented out currently.
>
> I made a suggestion that she change the initialization code from
> 	FILE* <classname>::fp_ = fopen(...)
> to
> 	FILE* <classname>::fp_ = NULL;
>
> Not an elegant solution, but it seems like it should work.
> Alternatively, on a UNIX/UNIX-like system, you might be able to open
> the bit bucket (/dev/null) rather than a real file name.  Not sure
> how the system would respond to having /dev/null open for writing
> twice ....?
>
> Brian Lee Bowers	|	RADIANT Team
> [email protected]	|	Los Alamos National Laboratory
>

-- 
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau

Padmaparna Haldar