socket_address [object]
- read-only properties
- family - the address family (AF_* constants) of this address, may be other than AF_INET or AF_INET6 but for those, feature set is severely limited
- read-write properties
- port - (AF_INET/AF_INET6 only)
- addr_u32 - (AF_INET only) the address as an integer between 0 and 2^32-1
- addr_buf - (AF_INET/AF_INET6 only) the address as a buffer of bytes of 'string' type
- addr_bytes - (AF_INET/AF_INET6 only) the address as an array of byte integers
- addr_string - (AF_INET/AF_INET6 only) the address string without the port
- full_addr_string - (AF_INET/AF_INET6 only) the address string with the port
- other features:
- tostring = <obj>.full_addr_string
- GC-safe
- limited content dump (full only for AF_INET/AF_INET6 addresses, for any other only
family
is dumped)
- type identification (returns the string "socket_address")