Socket s = new Socket(getHost(),getPort());
InputStream is = s.getInputStream();
OutputStream os = s.getOutputStream();
//Send client connection header
ClientConnectionHeader cHeader = new ClientConnectionHeader();
cHeader.send(os);
//Receive ServerConnection header and verify format
ServerConnectionHeader sHeader = new ServerConnectionHeader();
try {
sHeader.receive(is,getTimeout());
} catch (ProtocolException e) {