HTML Utilities

Showing help on 'connection_name()'

Syntax: connection_name (obj <player>) => str

Returns a network-specific string identifying the connection being used by the given player. If the programmer is not a wizard and not <player>, then E_PERM is raised. If <player> is not currently connected, then E_INVARG is raised.

For the TCP/IP networking configurations, for in-bound connections, the string has the form

"port <lport> from <host>, port <port>"

where <lport> is the listening port on which the connection arrived, <host> is either the name or decimal TCP address of the host to which the connection was opened, and <port> is the decimal TCP port of the connection on that host.

For the System V 'local' networking configuration, the string is the UNIX login name of the connecting user or, if no such name can be found, something of the form

"User <#number>"

where <#number> is a UNIX numeric user ID.

For the other networking configurations, the string is the same for all connections and, thus, useless.



-- telnet://project-mongoose.net:7777 -- Mail us -- http://project-mongoose.net:7780/ --
-- Five users connected --