cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/21/08:54:53

From: Sanda AT 97 DOT gyarab DOT cz
To: djgpp AT delorie DOT com
Date: Tue, 21 Sep 1999 11:41:10 +0100
Subject: libsocket
X-mailer: Pegasus Mail v3.41 (NDS, preview)
Message-ID: <3D9BEAC1CCA@gyarab.cz>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019