I have written a server-client program, I can successfully establish TCP connection between serve7r & client using sockets. Now, I have some functionality where server gets a data item from client & does a comparison. I want to break the TCP connection if the 2 data items being compared don't match. M writing in java but I dunno how 2 include tis functionality.