Listing B
SSLSocketFactory sslFact = (SSLSocketFactory)SSLSocketFactory.getDefault();
mySocket = (SSLSocket)sslFact.createSocket(serverIP, serverPort);
mySocket.setEnabledCipherSuites(mySocket.getSupportedCipherSuites());
PrintWriter POUT = new PrintWriter(mySocket.getOutputStream(), true);