The first time the Loop runs it works fine and contact the client. However, then after the program freezes on when I try and Accept Any More Connections:Socket[nClient] = accept(ServerSocket,NULL,NULL);

Share this post

Link to post

Share on other sites

Original post by thekiwimaddogAhh Thanks!!I was setting that for all the client sockets but not the server socket!

Would I need to do this for all the Clients or just the Server??

Thanks Again!!

David

Ah, whoops - I missed that bit in your code [smile]. You'll need to do it for each socket that you want to be non-blocking, the non-blocking state isn't inherited from listening socket to accepted client socket.