//Establish a connection to the mux server
Socket s = new Socket(InetAddress.getLocalHost(),getPort());
InputStream is = s.getInputStream();
OutputStream os = s.getOutputStream();
//Set the client ration to 256 bytes
ClientConnectionHeader cHeader = new ClientConnectionHeader()
.setRation((short)0x0001);
cHeader.send(os);
//receive the ServerConnection header
ServerConnectionHeader sHeader = new ServerConnectionHeader();
sHeader.receive(is,getTimeout());
//Play back the request obtained before
os.write(data);