[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I know a connect was rejected, and why?



Dumb question but the answer isn't obvious from looking at manpages or 
code...

If I do a connect, and the connect is rejected, how can I tell?  It
seems the connect call succeeds, but when you then try to read data
from the socket it fails.

There's a specific "rejected" link state, but I don't see how that's
visible from the application.  And besides, I need to have the reject
code. 

One scenario: the clean way to do sethost to non-cterm hosts is to try
to connect to cterm, then if that fails with reason == no such object,
retry with the other object number.

	paul
-----------------------------------------------------------------------------
To unsubscribe from this list, send a mail to majordomo@dreamtime.org
containing the line "unsubscribe linux-decnet"
-----------------------------------------------------------------------------