next | previous | forward | backward | up | top | index | toc | home

openListener -- open a port for listening

Description

f = openListener "$:service" opens a listener on the local host at the specified service port.
f = openListener "$" opens a listener on the local host at the Macaulay2 port (2500).

Use openInOut f to accept an incoming connection on the listener, returning a new input output file which serves as the connection. The function isReady can be used to determine whether an incoming connection has arrived, without blocking.

Ways to use openListener :