Hi,
I used C to write simple "udp" (not tcp) socket programming. The client will send the string to the server and server will just echo that string back to client. Everything went fine until I set the flag for client as nonblocking i/o (O_NONBLOCKING). When I sent the first string from client, the error occured and printed "Resource temporalily unavailable". But when I sent the second string from client, the server instead sent back the first. When I sent the third string from client, the server echoed the second, and so forth... I'm just curious what nonblocking i/o in client actually did to my code and made that a problem.
Thank you very much.
NOSW