I have written three programs that communicate with each other through
INET streams sockets---
prog A
listens on port X
listens on port Y
prog B
listens on port X
connects to prog A on port Y
prog C
connects to prog A on port X
connects to prog B on port X
I had a lot of trouble with this until I found out about SO_REUSEADDR.
:-) Anyway, I'm still having occational problems. Sometime, prog C
will think its connected to prog B while prog B will still be blocking
in select. I'm fairly sure all the fd masks are set correctly because
this problem only happens sometimes.
Is there something I may not be doing? Is there I man page I missed? I
suppose I should check to see if my threads package is messing things
up somehow.
thanks,
( It might be hot in Pittsburgh, but at least it's humid.