Okay, I know there's a thread about this but I wanted to started a clean one.
Anyways, I have an idea on how to do this.. everytime you open a CO, it'll open a new socket with the server, using a different port of course. So basically what you need to do is check the port it's using and kill that socket using port as parameter. Problem is.. how? You can't use socket.close(); since you don't know the socketname nor the process is yours. Is it possible? Yes, it is, I've used TCPView and X-NetVision to see all the open sockets and then I killed only the socket I wanted, for one CO. I got instant DC on the CO I wanted. That's exactly what I need to make an anti-pk program.
Anyone have any idea on how to close a socket using port as parameter? I've been looking at google but all I find is stuff saying how to close a socket you made, not by port...