The ip6 module allows TCP/IP Version 6 socket addresses, which are set to slowly replace the use of TCP/IP Version 4 on the Internet sometime in the future.
In addition to the standard module interface, it also has the following:
- IP6Addr ( host : String , service : String or Int )
- Create a socket address for the specified IP6 host and service.
host can be:
- An internet host name, which will be resolved using the machine's resolver settings when required (usually by DNS lookup).
- A hexadecimal IP address in the form "aaaa:bbbb:cccc:dddd:eeee:ffff:gggg:hhhh", or using the common abbreviated forms such as "::gggg:hhhh", where "::" indicates this part of the address is all zeros.
- An asterisk "*" - indicating a wildcard address. This is only valid when used with listening sockets and indicates that connections should be accepted on all available local interfaces.
service can be:
- The name of a standard service, which will be resolved using the machine's resolver settings when required (usually by lookup in the /etc/services file).
- A port number.
If the address is required for listening, then host should specify a local interface (or, more commonly, "*" for all) and service should specify a currently unused port.
Note that, on most systems, SconeServer will need to be running with root privileges in order to have permission to listen on low numbered ports (<1024).