Server fails while posting to socket

This is a discussion on Server fails while posting to socket within the Networking/Device Communication forums, part of the General Programming Boards category; Hello All!
I am trying to implement a multithreaded chat/quiz server using posix threads. The server is intended to run ...

Server fails while posting to socket

Hello All!

I am trying to implement a multithreaded chat/quiz server using posix threads. The server is intended to run under UNIX platform

I am expecting a problem, while client tries to write data into the socket. Client part goes down immediately, however the server continues its work being in active loop and serving client requests.
All files are compiled with GNU C++ compiler and it seems the compilation phase goes well. At least, i can't notice any error.

As you can see, nothing is returned..therefore i am really worried about how to figure it out, where is the damned error occurs.
Also i have never had a deal with gdb :-( and i think, it would made the problem more complicated in case i post the memory map

by the way, this piece of code is responsible for the message, returned by cerr << Unable to read

> (*sock >> echoBuffer) <= 0
Unless you know something I don't, I was under the general impression that the >> and << stream operators returned a reference to a stream, not the number of characters processed.

Somewhat oddly, you're also passing pointers to streams rather than references to streams.
Or is TCPSocket something completely different and really isn't a stream at all, but you've just overloaded the operators to make it look like it is?

So all you're really doing here is comparing what is essentially an address with 0 (or NULL).