diff options
author | deva <deva> | 2005-05-16 16:00:56 +0000 |
---|---|---|
committer | deva <deva> | 2005-05-16 16:00:56 +0000 |
commit | 856ab0ece3e73e2b520d55aeab9adfbccdb6aa93 (patch) | |
tree | 3f1149e90e5a9c88c6f22a6f8e39cfc02fdf6e67 /src/server.cc | |
parent | 3b5893ffa6d4a761eff0d97c7223eecd4fc123c9 (diff) |
Lots of stuff!
Diffstat (limited to 'src/server.cc')
-rw-r--r-- | src/server.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/server.cc b/src/server.cc index 76ba8c9..370af2e 100644 --- a/src/server.cc +++ b/src/server.cc @@ -31,6 +31,10 @@ /* * $Log$ + * Revision 1.14 2005/05/16 16:00:57 deva + * + * Lots of stuff! + * * Revision 1.13 2005/05/09 16:40:20 deva * * Added optimize yuv conversion code @@ -281,13 +285,15 @@ void newConnection(Socket *socket) frame = new Frame(NULL, DVPACKAGE_SIZE); - printf("New connection[pid: %d]...\n", getpid()); + fprintf(stderr, "New connection[pid: %d]...\n", getpid()); + fflush(stderr); Network network = Network(socket, &info); while(int ret = network.recvPackage(&h, frame->data, frame->size)) { status.checkPoint(); if(ret == -1) { fprintf(stderr, "An error occurred...!\n"); + fflush(stderr); break; } @@ -337,6 +343,7 @@ void newConnection(Socket *socket) if(enc) delete enc; - printf("Connection end[pid: %d]...\n", getpid()); + fprintf(stderr, "Connection end[pid: %d]...\n", getpid()); + fflush(stderr); } |