- Inherits from:
- Object
- Conforms to:
- DSocketAddressable
- Declared in:
- DSocketAddress.h
Object
|
+---DInet6SocketAddress
Class Description
The DInet6SocketAddress class implements a number of methods for using
IPv6 socket addresses.
- Last modified:
- 12-Nov-2005 (DSocketAddress.h)
Instance Variables
- private struct sockaddr_in6 _inet6
- the inet6 socket address
- private int _error
- the last error (for host method)
- Constructors
- - (DInet6SocketAddress *) init
- Initialise the socket address
- Returns:
- the object
- - (DInet6SocketAddress *) init :(unsigned char[16]) address :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Initialise the socket address with an inet6 address
- Parameters:
- address - the 16 bytes of the inet address
port - the port
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (DInet6SocketAddress *) init :(unsigned long) a1 :(unsigned long) a2 :(unsigned long) a3 :(unsigned long) a4 :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Initialise the socket address with an inet6 address
- Parameters:
- a1 - the first 32 bit of the inet address
a1 - the second 32 bit of the inet address
a1 - the third 32 bit of the inet address
a1 - the fourth 32 bit of the inet address
port - the port
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- Copy related methods
- - copy
- Copy the object
- Returns:
- the object
- - deepen
- Deepen the object
- Returns:
- the object
- Deconstructor
- - free
- Free the socket object
- Returns:
- the object
- Member services
- - (int) error
- Return the last error
- Returns:
- the last error
- - (int) family
- Return the family of the socket address
- Returns:
- the family
- - (DText *) host
- Return the host name
- Returns:
- a (new) text object with the host name (or nil for not found)
- - (int) port
- Return the port (network format)
- Returns:
- the port
- - (int) size
- Return the size of the socket address
- Returns:
- the size
- - (void *) sockaddr
- Return the socket address
- Returns:
- the socket address
- Socket address setters
- - (DInet6SocketAddress *) any :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Set the any address for the inet6 socket address
- Parameters:
- port - the port
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (DInet6SocketAddress *) close
- Close the socket address
- Returns:
- the object
- - (BOOL) host :(const char *) name :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Set the socket address with an inet6 host
- Parameters:
- host - the host name for the inet address
port - the port for the address
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (DInet6SocketAddress *) loopback :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Set the loopback address for an inet6 socket address
- Parameters:
- port - the port
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (DInet6SocketAddress *) set :(unsigned char[16]) address :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Set the socket address with an inet6 address
- Parameters:
- address - the 16 bytes of the inet6 address
port - the port of the address
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (DInet6SocketAddress *) set :(unsigned long) a1 :(unsigned long) a2 :(unsigned long) a3 :(unsigned long) a4 :(int) port :(unsigned long) flowInfo :(unsigned long) scopeId
- Set the socket address with an inet6 address
- Parameters:
- a1 - the first 32 bit of the inet address
a2 - the second 32 bit of the inet address
a3 - the third 32 bit of the inet address
a4 - the fourth 32 bit of the inet address
port - the port
flowInfo - the flow info
scopeId - the scope id
- Returns:
- the object
- - (BOOL) sockaddr :(void *) addr :(int) size
- Set the socket address with an external socket address
- Parameters:
- addr - the socket address
size - the size of the socket address
- Returns:
- success
generated 08-Jan-2006 by ObjcDoc 3.0.0