Extra packet sent when using socket/socketstream
Vladimir Panteleev
vladimir at thecybershadow.net
Tue Feb 7 05:44:23 PST 2012
On Monday, 6 February 2012 at 21:51:54 UTC, Vidar Wahlberg wrote:
> How can I make it not send a packet warning the recipient that
> it's about to receive another packet (of a given size)?
Don't use std.socketstream. Streams serialize some types in an
internal format (in your case, prepending the length of arrays).
If you only need to operate on raw bytes, it's simple to use
std.socket directly.
More information about the Digitalmars-d-learn
mailing list