> In the timeout() of tcp.cc, I added: > > // want to know what caused timeout > fp = fopen("test.out","r"); > fscanf(fp,......); > fclose(fp); > > But doing this gives me a core dump whenever the code of timeout() > is executed. If I use locking machanism, and put the procedure > to sleep, will this influence the event-driven process of NS-2? ns is single thread single process. - haobo