Connecting to sockets

Don E. Davis ded at milo.UUCP
Wed Oct 30 05:34:20 AEST 1985


I have two programs which communicate through sockets.
One program accept()'s connect()ions from the other program.
When the "accepting" program runs first, everything works fine.
When I run the "connecting" program first, it fails for ECONNREFUSED
the first time (reasonable enough), but thereafter it fails for
EINVAL (which I don't understand).  And, in fact, the "connecting"
program will continue to fail even after I've invoked the "accepting"
program.  What goes on here?



More information about the Comp.unix.wizards mailing list