Hello Francois and all,

I use telnet as client to connect to a twsocketserver,
after connecting to it, without sending any data from
the client (do not type anything in telnet) I call shutdown(1)
on all the client sockets. After this, although there is no
data received, the client socket's OnDataAvailable is called.
But if I call ReceiveStr(), I got data length 0.

Is this a bug - because there's actually no data received?

If it's not a bug, is there a way to tell if there is any
data before calling ReceiveStr() or Receive()?

-- 
Best regards,
Jack

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to