TCPIPClient_1.connect( "localhost", 9999 ); // send handshake string TCPIPClient_1.sendEnvelopedMsg( "Sun",getBytes() ); //receive handshake string byte[] back = TCPIPClient_1.receiveEnvelopedMesg(); ... ... ... TCPIPClient_1.close(); TCPIPClient_1.connect( "129.158.239.67", 9999 ); // send handshake string TCPIPClient_1.sendEnvelopedMesg( "Sun",getBytes() ); // receive handshake string back = TCPIPClient_1.receiveEnvelopedMesg(); ... ... .... TCPIPClient_1.client(); |