I got a server that will accept one client but exits right after the client closes the connection. I want to keep the server listening and ready to accept so that other clients (or the same one) can communicate with the server more than once.
actualy your code is oke.. the server keeps listening..
BUT the net-accept returns a socket ID of that specific connection
that is connected at that time...
So if you client disconnect the server is till there but in your code it
is listening to a socket-id which is gone...
So you have to reinit the net-accept again!
See the exmaple in the manual that uses 'net-select, thats a little
easier to use for multiple client access..
Thanks you, both of ya. I had been messing around with the the (while true) loop for a while, but couldnt get it in the right spot. I guess I just couldnt grasp everything that was going on. That worked like a charm :) Thanks again!