i want to use non blocking recv call, i tried using
Code: Select all
fcntl(connect_socket, F_SETFL, O_NONBLOCK); /* Change the socket into non-blocking state */
Code: Select all
connect_socket = accept(server_socket, (struct sockaddr *)&client_addr, &socklen);
how to receive data from tcp socket without blocking the call ? incase i have multiple socket connection i need to be non blocking.
need help in this
regards
Sushant