> I can't use LineMode, what is transferred is purely binary.
that discusses some possible data transfer modes.
> buffer and rely on the one from the API itself.
> I tried it, it works fine, but is it be a "nice" thing to do? Are there
> any risks associated with this behavior?
if you only receive if you have complete data packet instead of
receiving every time winsock want to give you a partial data packet then
you design an untested situation because TWSocket is designed to deliver
data every time winsock has data. so not by design and not tested seems
discouraged to me.
but also if you do so and only receive if complete data is received,
then how do you know data is complete ? I mean you can only know by
examing the data so by receive it ?
So I think using your own buffer is the best thing to do.
Rgds, Wilfried [TeamICS]
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