Mail Archives: djgpp/1999/09/21/08:54:53
Hi people
Recently i downloaded libsocket 0.7.4 beta 3 by R(?ichard
)D(?avis)(forgor teh name:)). I discovered these bugs that
are in linux manpages also.
1) DEMO program servern which should be in nonblocking mode
has wrong option set in fcntl(socket,SET_FL(or
wahtever),O_NONBLOCK(!!!)). That's it.
ANother thing is that setsockopt(socket,SOL_SOCK,RCWLOVAT);
It should set minimum input buffer(the last define is prob. wrong)
(i don't have man pages right here)).In libsocket it writes(errno)
ENOPROTOSYS - function not supported at this level.
That's a good joke!
Last thing that is even in linux man mage recv(2).
It's stated there that i can use recv(socket, buf,
sizeof(buf),MSG_WAITALL) to get the whole buffer filled(blocking or
not..)). Alas there is no such constant as MSG_WAITALL defined in all
the linux includes. Friend of mine found MSG_WAITALL define(0x44) in
some WURG or so sources but not in his linux. I don't really think
that all this is flaw of libsocket. It's more probably flaw in linux
functions.
David Sanda
- Raw text -