Linked pointer for address lists.
More...
#include <socket.h>
Inherits linked_sockaddr_operations.
|
const struct sockaddr_in * | in (void) const |
|
const struct sockaddr_in6 * | in6 (void) const |
|
| linked_pointer (const struct addrinfo *list) |
|
| linked_pointer (const linked_pointer ©) |
|
| linked_pointer (Socket::address &list) |
|
void | next (void) |
|
| operator bool () const |
| Test if the address list is valid. More...
|
|
| operator const struct sockaddr * () const |
| Get the full socket address list by casted reference. More...
|
|
| operator const struct sockaddr_in * () const |
|
| operator const struct sockaddr_in6 * () const |
|
bool | operator! () const |
| Test if we have no address list. More...
|
|
socket_t | operator() (void) const |
| Get socket as expression operator.
|
|
const struct sockaddr * | operator* () const |
| Return the full socket address list by pointer reference. More...
|
|
const struct sockaddr * | operator-> () const |
| Return member from typed object our pointer references. More...
|
|
linked_pointer & | operator= (const struct addrinfo *list) |
| Assign our pointer from an address list. More...
|
|
linked_pointer & | operator= (Socket::address &list) |
| Assign our pointer from an address list. More...
|
|
void | set (const struct addrinfo *list) |
| Assign our pointer from an address list. More...
|
|
void | set (Socket::address &list) |
| Assign our pointer from an address list. More...
|
|
template<>
class ucommon::linked_pointer< sockaddr_struct >
Linked pointer for address lists.
This can be used to iterate through the list of a Socket::address object using the linked_pointer method.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1947 of file socket.h.
§ operator bool()
Test if the address list is valid.
- Returns
- true if we have an address list.
Definition at line 2014 of file socket.h.
§ operator const struct sockaddr *()
Get the full socket address list by casted reference.
- Returns
- addrinfo list we resolved or NULL if none.
Definition at line 1973 of file socket.h.
§ operator!()
Test if we have no address list.
- Returns
- true if we have no address list.
Definition at line 2065 of file socket.h.
§ operator*()
Return the full socket address list by pointer reference.
- Returns
- addrinfo list we resolved or NULL if none.
Definition at line 1981 of file socket.h.
§ operator->()
Return member from typed object our pointer references.
- Returns
- evaluated member of object we point to.
Definition at line 2057 of file socket.h.
§ operator=() [1/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2022 of file socket.h.
§ operator=() [2/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2031 of file socket.h.
§ set() [1/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2040 of file socket.h.
§ set() [2/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2048 of file socket.h.
The documentation for this class was generated from the following file: