Jeff Kell ([log in to unmask]) wrote:
: I was playing around trying to port the FreeBSD 'whois' client. It
: compiles fine but croaks during execution. I seem to recall earlier
: discussion (before I started paying attention :-) ) about there still
: being a distinct line between file descriptors and socket descriptors,
: and I think that's where the problem is.
: The client establishes a connection "s" with the server, then does uses
: two fdopen() calls to open an input and and output path to the socket.
: Consequently that happens to be where it's blowing up :-)
: Can someone shed a definitive answer if this is legitimate Posix or not?
I'm surprised the fdopen calls work- they aren't documented.
I would suggest removing the fdopen calls and then convert to write()
calls instead of fwrite() calls.
Mike
---
Mike Belshe
[log in to unmask]
HP CSY Networking Lab