Next Previous Up Top Contents Index

10.4.2 The <SERVER-SOCKET> class

<server-socket>

Open abstract primary instantiable class

Superclasses: <abstract-socket>
Server-sockets listen on a specified port for connection requests which come in over the network. Either the port: or service: keyword must be supplied.
Keywords:

service:

An instance of <string> containing an abstract name for a service with a "well-known" port, such as "ftp" or "daytime". Valid names depend on the configuration of the DNS. Required unless port: is supplied.

port:

An instance of <integer> identifying the port on which the <server-socket> should listen for connection requests. Required unless service: is supplied.

protocol:

An instance of <string> naming the protocol. Currently "tcp" is the only supported protocol. You can create instances of protocol-specific subclasses as an alternative to using the protocol: keyword. For example, make(<server-socket>, protocol: "tcp", ...) is equivalent to make(<TCP-server-socket>, ...).

make on (<server-socket>) returns an instance of <tcp-server-socket> by default.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index