Hello Francois,

>> At some point I'd like to know
>> if there is data available but do not want to actually remove
>> the data from twsocket's buffer. This is because I want to
>> open a remote socket and make sure it's in wsConnected state,
>> then I'll retrieve data and send it through the remote socket.
>> The idea is to skip OnDataAvailable if no data is available,
>> and when there is some data, connect to a remote server, skip
>> more OnDataAvailable until the remote socket is connected, then
>> actually retrieve data and send the data via remote socket.

> Maybe use Pause/Resume ?

Oh, I didn't even know these two methods. So Pause will stop
all network connectivity on that socket until it's resumed?
If so, I guess I Pause the client socket and resume it when
the resume socket is connected.

Is there a flat to check if a client socket is paused?

> You could receive a lot of data before the other socket is opened. This is a
> potential DOS attack.

This is a good point.

Thanks,
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