Next: Exceptions
Up: External Resources
Previous: Shells and Pipes
  Contents
SocketClient and SocketServer are ExternalResources
that provide a connection on an operating system port. The behaviors
specific to these two types are as follows:
- newOnPort:
- creates a new socket of the appropriate type
to listen/request on the port number.
- shutdown
- shuts down the socket, called when closing (automatically).
- wait
- waits indefinitely for a connection on the SocketServer.
- wait:
- waits a specific given amount of time in seconds
for a connection on the SocketServer. An Error is
raised if this does not happen. A timeout of zero will cause polling.
- host
- answers the hostname of the socket.
- port
- answers the port number of the socket.
- peerHost
- answers the hostname of the peer.
- peerPort
- answers the peer's port number.
- peerIP
- answers the Internet Protocol address string of
the peer, if any.
- status
- answers a symbol representing the socket's current
status.
Brian Rice
2004-08-24