Extra packet sent when using socket/socketstream

Vidar Wahlberg canidae at exent.net
Tue Feb 7 08:45:28 PST 2012


On 2012-02-07 14:44, Vladimir Panteleev wrote:
> 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.

Thanks, that did the trick.


More information about the Digitalmars-d-learn mailing list