Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated connection_info() #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion function_help.moo
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
@prop #123."connection_name_lookup()" {} rc
;;#123.("connection_name_lookup()") = {"Syntax: connection_name_lookup (OBJ <connection> [, 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 <connection>) => LIST", "", "Returns a MAP of network connection information for <connection>. 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 <connection>) => LIST", "", "Returns a MAP of network connection information for <connection>. 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 <hash>, STR <password>) => INT", "", "Compares <password> to the previously hashed <hash>. Returns 1 if the two match or 0 if they don't."}
@prop #123."maphaskey()" {} rc
Expand Down