|
From: Klaus <kha...@we...> - 2001-11-14 18:13:19
|
Hi, In my program the following lines exist: int connectionCounter = 0; . . . cout << connectionCounter << endl; clientSock = socket.accept(clientAddr); cout << connectionCounter << endl; The first cout prints 0 to the console, the second an astonishing big number. Seems to me, that someone overwrites the data at &connetionCounter while in the accept function. Any suggestions? tia, Klaus |