Sockets
Status
get the status of all open socket connections
Calling Sequence
Description
Examples
References
Status()
The procedure Status returns a description of the open socket connections maintained by the Sockets package. The description is in the form of a two element list. The first member of the returned list is the number of open connections. The second element is a list containing an entry for each open connection.
Each open socket is itself described by a list of four elements. The first element is the socket ID of the connection. The second element is a string that describes the kind of socket (one of: "client", "acceptor", "unknown", or "server"). The host name of the peer in the connection is presented as a string in the third member of the list. Finally, the peer port number is given in the fourth list element.
with⁡Sockets:
Status⁡
0,
s≔Open⁡mantis,echo:
1,0,client,mantis,7
t≔Open⁡localhost,daytime:
2,0,client,mantis,7,1,client,localhost,13
map⁡Close,map2⁡op,1,Status⁡2
true,true
Information Sciences Institute, "RFC 862 Echo Protocol," ISI Home Page, http://www.isi.edu/in-notes/rfc862.txt; accessed 17 November 2005.
Information Sciences Institute, "RFC 867 Daytime Protocol," ISI Home Page, http://www.isi.edu/in-notes/rfc867.txt; accessed 17 November 2005.
See Also
socket definition
Download Help Document