Christoph Nemmaier
|
connect() retry returning EINVAL
|
Christoph Nemmaier
10/22/2008 9:40 AM
post15399
|
connect() retry returning EINVAL
Hello,
I'm porting a program to QNX that communicates via TCP. It tries to connect() to a server, and retries connect() calls
until it is finally found. This program runs on Linux, even Windows, and others, but not on Neutrino. Here, only the
first connect() call fails with the expected ECONNREFUSED, but retries using the identical parameter list yield EINVAL,
even if the server has become available in the meantime.
I tried to find documentation about the differences in behaviour, but to no avail. Momentics help does not even mention
EINVAL to be a possible errno return code. Can somebody tell me why connect() behaves differently, and what to do about
it?
TIA
Christoph Nemmaier
|
|
|