socket.connect(new InetSocketAddress(host, port));
// do the SSL negotiation
if (!ssl.equals("disable")) {
socket.configureBlocking(true);
currentOutBuffer = new SSLRequest().toBytes();
socket.write(currentOutBuffer);
ByteBuffer tempBuffer = ByteBuffer.allocate(1);
socket.read(tempBuffer);
tempBuffer.flip();
switch (tempBuffer.get()) {