Hi - I am trying to use TBufferedTransport::peek() to find out if an attempt to 
read a message would block.
>From what I understand from the code, TBufferedTransport will delegate the 
>call to TSocket given that I'm using that as the underlying transport.
My problem is that TSocket::peek() appears to block!
I think the offending code is:
int r = recv(socket_, &buf, 1, MSG_PEEK);
Seems like it shouldn't block, that being the point of peek(), and should read:
int r = recv(socket_, &buf, 1, MSG_PEEK | MSG_DONTWAIT);
Am I missing something?  Is there some way to get this working the way I'm 
expecting and hoping that it will work?

Thanks

Reply via email to