#import <ObjectiveLib/SocketAddress.h>
Inheritance diagram for OLSocketAddress:
Public Member Functions | |
(id) | - copy |
Make a copy of this socket address. | |
(OLText *) | - description |
Return a description of the socket address. | |
(unsigned) | - hash |
Return the hash code of this socket address. | |
(const struct sockaddr *) | - hostRepresentation |
Return a platform-dependent representation of the address. | |
(unsigned) | - hostRepresentationLength |
Return the length of the host representation. |
This base class provides common functionality shared by all addresses.
- (id) copy |
Make a copy of this socket address.
Reimplemented in OLInternet4Address, OLInternet6Address, and OLUnixAddress.
- (OLText*) description |
Return a description of the socket address.
The nature of the description will depend on the type of socket address.
Reimplemented in OLInternet4Address, OLInternet6Address, and OLUnixAddress.
- (unsigned) hash |
Return the hash code of this socket address.
The hash code is computed using OLHash.
- (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 in OLInternet4Address, OLInternet6Address, and OLUnixAddress.
- (unsigned) hostRepresentationLength |
Return the length of the host representation.
The length of the structure returned by hostRepresentation is returned.
Reimplemented in OLInternet4Address, OLInternet6Address, and OLUnixAddress.
|