Next: Sockets.IPAddress-printing, Previous: Sockets.IPAddress class-instance creation, Up: Sockets.IPAddress [Index]
Answer the ‘address class’ of the receiver (see IPAddress class>>#fromString:)
Answer a read-only ByteArray of size four containing the receiver’s bytes in network order (big-endian)
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.
Answer whether the receiver reprensents an address reserved for multicast datagram connections
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.
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.