Hello
I try to use a TCP server, Windows and Linux. My choice is focused on the TTCPServer.
I managed to use it normally, mode bmThreadBlocking.
When a client connects to my server I keep it in OnAccept function is called when I received the event of the same name. When the client disconnects, I lot of my office OnAccept. Up until this no problem.
When I turn off the server and restarts without any client connected to him, everything goes well. By cons, if I switch off the server when a client is connected, the client is connected and when I try to restart the server it does not work.
So I tried to force the disconnection of customers before closing the server (at the connection I store client in a collection), the customer logs out fine but when I restart the server, I get an error on bind ( or ENXIO No such device or address).
I should mention that this error occurs only on Linux, the same code works on Windows without problem.
Thank you in advance
Chubb