Hello Community,
I want to accept one client to connect to my server application, but when I use
ret = select(nfds+1, pR, NULL, pE, (struct timeval *)timeout);
no reading is reported. I know that the client want to connect to my server! Only an exeption will occure after 60 sec. (But this is controlled by netapp_timeout_values())
I open a socket, configure it (setsockopt(socket, SOL_SOCKET, SOCKOPT_NONBLOCK, &nonBlocking, sizeof(nonBlocking)); ), bind it, listen on one connection and poll select. After polling I want to accept the connection, because I want no blocking at accept.
How did I use/configure the select methode to detect any client connection to my socket?
Regards,
Dennis