Unexpected behaviour on socket

daoryn asdf at gaw.com
Wed Feb 10 05:41:45 PST 2010


> 
> The buffer you are passing to receive is 0 bytes long.  The std.socket.Socket.receive function is a wrapper over the normal socket function, and includes a test for an empty buffer.
> 
> Daniel

Ohh, I see. Thank you!

I thought that the function would resize the buffer accordingly. Thank you for the clarification, i feel like an idiot *giggle*


More information about the Digitalmars-d-learn mailing list