Close
Close window
Status - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Sockets

Status

get the status of all open socket connections

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /