hi, i have a simple question; Suppose that followig code is a thread;
/************************************************** */
listener = new TcpListener( IP, PORT);
listener.Start();
while(running) {
sock = listener.AcceptSocket(); // this is blocking... suppose no client
connects
/*bla bla bla*/
}
/************************************************** */
How can i release(dipose, free) the listener socket. i have tried
"listener.Stop()" , aborting thread etc....
i just want to break it even by creating exception or by normal way(i don
kno how).
Best regards...