standard.net.socket.SocketInfo

SocketInfo is available since version 1.0.

Prototype:

array SocketInfo(number socket)

Parameters

socket
a valid and socket descriptor, as returned by SocketCreate

Description:

Gets an array describing the socket.
The array has two keys: "address"(containing a string) and "port" (containing a number) describing the address associated with the socket, and respectively the port.

Return value:

Returns an array describing the socket.