Unexpected behaviour on socket

downs default_357-line at yahoo.de
Thu Feb 11 15:17:05 PST 2010


On 10.02.2010 14:41, daoryn wrote:
>>
>> 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*

http://d.puremagic.com/issues/show_bug.cgi?id=3794

Filed a bug.


More information about the Digitalmars-d-learn mailing list