code: private synchronized void setSocket(final Socket newSocket) {
      connector = null;
      socketNode = new SocketNode13(newSocket, this);
      socketNode.addSocketNodeEventListener(this);
  
      synchronized (listenerList) {
          for (Iterator iter = listenerList.iterator(); iter.hasNext();) {
              SocketNodeEventListener listener =
                      (SocketNodeEventListener) iter.next();
              socketNode.addSocketNodeEventListener(listener);
          }
      }
      new Thread(socketNode).start();
    }
docs: Set socket.
  @param newSocket new value for socket.