[haXe] Re: bug in neko.net.ServerLoop?
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Nov 6 09:25:08 CET 2006
> thanks for the reply nicolas.
> what i am not understanding though is that in this case, there are more bytes
> in the buffer buflen is allowing for.
>
> if you look at the code i sent, i am getting the length of the data being
> returned by the ServerLoop with .length.
>
> why would the server tell me buflen is smaller than the actual
> length of the data? this is what is happening
"buf" is a temporary buffer. You should only read it between "pos" and
"pos+len". It's normal that the size of the temporary buffer is larger
than the data that was readed.
Nicolas
More information about the Haxe
mailing list