Status - Maple Help

Online Help

All Products    Maple    MapleSim


Sockets

  

Status

  

get the status of all open socket connections

 

Calling Sequence

Description

Examples

References

Calling Sequence

Status()

Description

• 

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.

Examples

withSockets:

Status

0,

(1)

sOpenmantis,echo:

Status

1,0,client,mantis,7

(2)

tOpenlocalhost,daytime:

Status

2,0,client,mantis,7,1,client,localhost,13

(3)

mapClose,map2op,1,Status2

true,true

(4)

Status

0,

(5)

References

  

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

Sockets