this application(the tcp server part) terminate when receive a buffer "quit" from remote client. But what if I run the server application and then close the window with the 'x' button while the client is still connected.
I know thats ok, but is there some side effect to the computer (like memory leak or something) ?
this is only a console application so I can't directly control through the applition itself.
Modern operating systems automatically free all resources when a process terminates, even if the programmer "forget" to do it. This is in theory, in practice you encounter nasty behavior if you don't close all sockets, opened files, etc yourself.