Next: , Previous: Sockets.IPAddress class-instance creation, Up: Sockets.IPAddress


6.12.5 Sockets.IPAddress: accessing

addressClass
Answer the `address class' of the receiver (see IPAddress class>>#fromString:)


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


host
Answer an host number for the receiver; this is given by the last three bytes for class A addresses, by the last two bytes for class B addresses, else by the last byte.


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


network
Answer a network number for the receiver; this is given by the first three bytes for class C/D/E addresses, by the first two bytes for class B addresses, else by the first byte.


subnet
Answer an host number for the receiver; this is 0 for class A addresses, while it is given by the last byte of the network number for class B/C/D/E addresses.