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

RE: Problem with ns (fwd)



We (at least me, Christian Joensson and Matt Marchant) have been able to
complete validate on win32 (but with multiple test suites failed...). That
should have nothing to do with passing file handles between otcl and C++. 
(See mash.cs.berkeley.edu/ns/ns-win32-build.html, courtesy of Matt
Marchant).

However, the test suite does not cover everything. If you experience a
particular problem, it would be preferable if you can submit a patch to
the mailing list. Thank you very much. 

- Haobo

On Fri, 30 Jul 1999, Lloyd Wood wrote:

> Hey, don't tell me, tell the mailing list. Anyone got a handle on
> Windows file calls?
> 
> thanks,
> 
> L.
> 
> but the tracefile is text - don't tell me this is a CR/LF thing.
> 
> <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
> 
> From: John Perry <[email protected]>
> To: Lloyd Wood <[email protected]>
> Subject: RE: Problem with ns
> Date: Fri, 30 Jul 1999 17:33:32 -0500
> 
> Here's the bug:
> 
> In the Windows executable version, The fopen() in the setup method of
> traffictrace.cc opens a file by default in text mode rather than binary. I
> have been unable to get ns to read any trace file, even the example-trace
> file included with ns.
> 
> The following code is the source of the problem:
> 		if ((fp = fopen(name_, "r")) == NULL) {
> 			printf("can't open file %s\n", name_);
> 			return -1;
> 		}
> 
> If the "r" is changed to "rb" the file will open in binary mode should be
> able to be read correctly.
> 
> John
> 
> 
>