Socket createSocket() throws IOException {
  Socket sock;
  if (isSslEnabled())   sock=sslSockFactory.createSocket();
 else   sock=new Socket();
  sock.bind(new InetSocketAddress(locHost,0));
  sock.setTcpNoDelay(true);
  return sock;
}

Socket createSocket ( ) throws IOException { Socket sock ; if ( isSslEnabled ( ) ) sock = sslSockFactory . createSocket ( ) ; else sock = new Socket ( ) ; sock . bind ( new InetSocketAddress ( locHost , 0 ) ) ; sock . setTcpNoDelay ( true ) ; return sock ; }
creates socket binding it to a local host address . this operation is not blocking .
