Re: Unexpected behaviour on socket

2010-02-11 Thread downs
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 fun

Re: Unexpected behaviour on socket

2010-02-10 Thread daoryn
> > 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. Than

Re: Unexpected behaviour on socket

2010-02-09 Thread Daniel Murphy
Gythzel Wrote: > (relating code at http://dpaste.com/156595/ on D2) > > This is a very trimmed version of something I'm experimenting with, so the > design of the code is not the issue. The problem is what happens on the > "accepter" function. > > After the Socket.select returns 1 (meaning, 1

Unexpected behaviour on socket

2010-02-09 Thread Gythzel
(relating code at http://dpaste.com/156595/ on D2) This is a very trimmed version of something I'm experimenting with, so the design of the code is not the issue. The problem is what happens on the "accepter" function. After the Socket.select returns 1 (meaning, 1 socket has its state changed)