code: private void createConnection() throws IOException {
  		client = new Socket(hostName, port);
  		client.setKeepAlive(true);
  		client.setTcpNoDelay(true);
  
  		outputStream = client.getOutputStream();
  	}
docs: ------------------------------------------------------------------------