10.14. File too/Nameserver

class too.NameserverDefinitions

The NameserverDefinitions class contains nameserver related constants for any interested class to inherit.

variables

const DEFAULT_SERVER_PORT = 2360;

The default TCP port on which the nameserver is listening.

const PORT_NOT_FOUND = -1;

The port number returned for the port which is not found.

instance too.NameserverDefinitions

class too.Nameserver

inherits

State supers: NameserverDefinitions

instance too.Nameserver

methods


deferred void
       reportTo NameserverClient client
  portOfService String service_name
         onHost String hostname;

Report to the client the internet TCP port of the service named service_name which is running on the host named hostname.

class too.NameserverClient

inherits

State supers: NameserverDefinitions

instance too.NameserverClient

methods


deferred void
  service String service_name
   onHost String hostname
  hasPort int port;

Be informed of the port in response to the reportTo portOfService onHost request.