#import <ObjectiveLib/SocketAddress.h>
Inheritance diagram for OLInternet6Address:
Public Member Functions | |
(id) | - copy |
Make a copy of this socket address. | |
(OLText *) | - description |
Return a description of this address. | |
(const struct sockaddr *) | - hostRepresentation |
Return a platform-dependent representation of the address. | |
(unsigned) | - hostRepresentationLength |
Return the length of the host representation. | |
(BOOL) | - isEqual: |
Return whether this address is equal to another one. | |
(BOOL) | - isLocalWildcard |
Return whether this address is a local wildcard. | |
(uint16_t) | - port |
Return the port. | |
Initializers and Deallocators | |
(id) | - free |
Finalize the address and deallocate any allocated memory. | |
(id) | - init |
Initialize the address. | |
(id) | - initWithPort: |
Initialize the address. | |
Protected Attributes | |
sockaddr_in6 * | hostRep |
The host representation of the address. |
This type of address can be used to communicate with a host via Internet protocol version 6.
- (id) copy |
- (OLText*) description |
Return a description of this address.
Return a description of this address.
A human-readable version of the address is returned. If a canonical name exists, then that name will be returned. Otherwise, a textual representation of the IP address and port number is returned.
Reimplemented from OLSocketAddress.
- (id) free |
- (const struct sockaddr*) hostRepresentation |
Return a platform-dependent representation of the address.
The returned data can be used in low-level socket operations and is intentionally opaque.
Reimplemented from OLSocketAddress.
- (unsigned) hostRepresentationLength |
Return the length of the host representation.
The length of the structure returned by hostRepresentation is returned.
Reimplemented from OLSocketAddress.
- (id) init |
Initialize the address.
Initialize the address.
A local wildcard address is initialized with a port number of zero.
- (id) initWithPort: | (uint16_t) | port |
Initialize the address.
Initialize the address.
A local wildcard address is created with the given port number.
port | the port of the address |
- (BOOL) isEqual: | (id) | object |
Return whether this address is equal to another one.
object | the object with which to compare this one |
- (BOOL) isLocalWildcard |
Return whether this address is a local wildcard.
A local wildcard address is one that can refer to any of the current host's IP addresses without specifying exactly which one.
Reimplemented from OLInternetAddress.
- (uint16_t) port |
- (struct sockaddr_in6*) hostRep [protected] |
The host representation of the address.
|