Esix and getpeername
Wayne McCormick
wayne at gfx.cpsc.ucalgary.ca
Mon Apr 15 07:25:34 AEST 1991
Has anyone out there tried to use the getpeername() call in ESIX? It appears
to be broken, that is, it doesn't return ENOTCONN when you give it a socket
that is not connected with anything. This is a rather critical thing, as I
am involved with writing some code that is used within a systems software
class. Briefly, there is a simple daemon and several clients. The clients
are started by students who are accessing the system via programs that they
have written. As a result, if their programs crash, the resulting reboot
causes the server to be killed. This means that the daemon must be able to
determine if a client has up and died -- getpeername() is the only call I
know of that does this. Due to some portability restrictions, sockets
*must* be used. As an aside, ESIX sockets aren't really that bad. With a
few #ifdefs, this code is portable to Sun and Ultrix systems.
Any ideas? (The ESIX getpeername() call never returns an error state, hence
the problem.)
BTW: This message is being posted via a friends acct, you can reply to
him, reply to news, or reply to me at mhoffos at janus.mtroyal.ab.ca.
Mike Hoffos
More information about the Comp.unix.sysv386
mailing list