From ca778e8bf7facaf009913373cb3cbef5ffcfe354 Mon Sep 17 00:00:00 2001 From: Seven Ecks Date: Mon, 6 Mar 2023 13:43:55 -0500 Subject: [PATCH] updated connection info --- function_help.moo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function_help.moo b/function_help.moo index a64aa19..0d08035 100644 --- a/function_help.moo +++ b/function_help.moo @@ -124,7 +124,7 @@ @prop #123."connection_name_lookup()" {} rc ;;#123.("connection_name_lookup()") = {"Syntax: connection_name_lookup (OBJ [, INT record_result]) => STR", "", "This function performs a DNS name lookup on connection's IP address. If a hostname can't be resolved, the function simply returns the numeric IP address. Otherwise, it will return the resolved hostname.", "", "If record_result is true, the resolved hostname will be saved with the connection and will overwrite it's existing 'connection_name()'. This means that you can call 'connection_name_lookup()' a single time when a connection is created and then continue to use 'connection_name()' as you always have in the past.", "", "This function is primarily intended for use when the 'NO_NAME_LOOKUP' server option is set. Barring temporarily failures in your nameserver, very little will be gained by calling this when the server is performing DNS name lookups for you.", "", "NOTE: This function runs in a separate thread. While this is good for performance (long lookups won't lock your MOO like traditional pre-2.6.0 name lookups), it also means it will require slightly more work to create an entirely in-database DNS lookup solution. Because it explicitly suspends, you won't be able to use it in 'do_login_command()' without also using the 'switch_player()' function. For an example of how this can work, see '#0:do_login_command()' in ToastCore."} @prop #123."connection_info()" {} rc -;;#123.("connection_info()") = {"Syntax: connection_info (OBJ ) => LIST", "", "Returns a MAP of network connection information for . At the time of writing, the following information is returned:", "", "destination_address: The hostname of the connection. For incoming connections, this is the hostname of the connected user.", " For outbound connections, this is the hostname of the outbound connection's destination.", "", "destination_ip: The unresolved numeric IP address of the connection.", "", "destination_port: For incoming connections, this is the local port used to make the connection.", " For outbound connections, this is the port the connection was made to.", "", "source_address: This is the hostname of the interface an incoming connection was made on. For outbound connections, this value is meaningless.", "", "source_ip: The unresolved numeric IP address of the interface a connection was made on. For outbound connections, this value is meaningless.", "", "source_port: The local port a connection connected to. For outbound connections, this value is meaningless.", "", "protocol: Describes the protocol used to make the connection. At the time of writing, this could be IPv4 or IPv6.", " "} +;;#123.("connection_info()") = {"Syntax: connection_info (OBJ ) => LIST", "", "Returns a MAP of network connection information for . At the time of writing, the following information is returned:", "", "destination_address: The hostname of the connection. For incoming connections, this is the hostname of the connected user.", " For outbound connections, this is the hostname of the outbound connection's destination.", "", "destination_ip: The unresolved numeric IP address of the connection.", "", "destination_port: For incoming connections, this is the local port used to make the connection.", " For outbound connections, this is the port the connection was made to.", "", "source_address: This is the hostname of the interface an incoming connection was made on. For outbound connections, this value is meaningless.", "", "source_ip: The unresolved numeric IP address of the interface a connection was made on. For outbound connections, this value is meaningless.", "", "source_port: The local port a connection connected to. For outbound connections, this value is meaningless.", "", "protocol: Describes the protocol used to make the connection. At the time of writing, this could be IPv4 or IPv6.", "", "outbound: Indicates whether a connection is outbound or not"} @prop #123."argon2_verify()" {} rc ;;#123.("argon2_verify()") = {"Syntax: argon2_verify (STR , STR ) => INT", "", "Compares to the previously hashed . Returns 1 if the two match or 0 if they don't."} @prop #123."maphaskey()" {} rc