[top][index]
search for:

openListener -- open a port for listening

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 :

  • openListener String

  • [top][index]
    search for: