Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - connect() retry returning EINVAL: Page 1 of 4 (4 Items)
   
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