code: protected void addConnection(Socket socket) throws IOException {
          FTPConnection con = createConnection(socket);
  
          synchronized(listeners) {
              for(IFTPListener l : listeners) {
                  l.onConnected(con);
              }
          }
          synchronized(connections) {
              connections.add(con);
          }
      }
docs: Called when a connection is created.
  
  @param socket The connection socket
  @throws IOException When an error occurs