Method code for $daemon.connect()

[Turn off line numbering]
  1: arg remote, local, socket, @rest;
  2: var conn;
  3: 
  4: if ($sys.host_denied(remote)) {
  5:     close_connection();
  6:     return;
  7: }
  8: if (!valid(next_connection))
  9:     next_connection = connection.new_connection();
 10: conn = next_connection;
 11: reassign_connection(conn);
 12: next_connection = connection.new_connection();
 13: conn.start(remote, local, socket, current_ports[1][1]);

// Created 22-Aug-1995 as a part of ColdCore, see: @help Credit

Tlon