Back: Sockets.ICMPSocketImpl class-C constants Up: Sockets package Forward: Sockets.IP6Address class-C constants   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

6.11 Sockets.IP6Address

Defined in namespace Sockets
Superclass: Sockets.SocketAddress
Category: Sockets-Protocols

This class models an IPv6 address. It also acts as a factory for IPv6 stream (TCP), datagram (UDP) and raw sockets.

6.11.1 Sockets.IP6Address class: C constants  (class)
6.11.2 Sockets.IP6Address class: constants  (class)
6.11.3 Sockets.IP6Address class: initialization  (class)
6.11.4 Sockets.IP6Address class: instance creation  (class)
6.11.5 Sockets.IP6Address: accessing  (instance)
6.11.6 Sockets.IP6Address: printing  (instance)


6.11.1 Sockets.IP6Address class: C constants

addressFamily
Not commented.

aiAll
Not commented.

aiV4mapped
Not commented.

protocolFamily
Not commented.


6.11.2 Sockets.IP6Address class: constants

addressSize
Answer the size of an IPv4 address.

version
Answer the version of IP that the receiver implements.


6.11.3 Sockets.IP6Address class: initialization

createLoopbackHost
Answer an object representing the loopback host in the address family for the receiver. This is ::1 for IPv4.

createUnknownAddress
Answer an object representing an unkown address in the address family for the receiver

initialize
Set up the default implementation classes for the receiver


6.11.4 Sockets.IP6Address class: instance creation

fromArray: parts
Answer a new IP6Address from an array of numbers; the numbers are to be thought as the colon-separated numbers in the standard numbers-and-colons notation for IPv4 addresses.

fromBytes: aByteArray
Answer a new IP6Address from a ByteArray containing the bytes in the same order as the digit form: 131.175.6.2 would be represented as #[131 175 6 2].

fromSockAddr: aByteArray port: portAdaptor
Private - Answer a new IP6Address from a ByteArray containing a C sockaddr_in structure. The portAdaptor's value is changed to contain the port that the structure refers to.

fromString: aString
Answer a new IP6Address from a String containing the requested address in digit form.

new
This method should not be called for instances of this class.


6.11.5 Sockets.IP6Address: accessing

asByteArray
Answer a read-only ByteArray of size four containing the receiver's bytes in network order (big-endian)

isMulticast
Answer whether the receiver reprensents an address reserved for multicast datagram connections


6.11.6 Sockets.IP6Address: printing

printOn: aStream
Print the receiver in dot notation.



Back: Sockets.IP6Address-accessing Up: Sockets.IP6Address Forward: Sockets.IPAddress   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html