Linked pointer for address lists.
More...
#include <socket.h>
Public Member Functions |
struct sockaddr_in * | in (void) const |
struct sockaddr_in6 * | in6 (void) const |
| linked_pointer (struct addrinfo *list) |
| linked_pointer (Socket::address &list) |
void | next (void) |
| operator bool () const |
| Test if the address list is valid.
|
| operator struct sockaddr * () const |
| Get the full socket address list by casted reference.
|
| operator struct sockaddr_in * () const |
| operator struct sockaddr_in6 * () const |
bool | operator! () const |
| Test if we have no address list.
|
socket_t | operator() (void) const |
| Get socket as expression operator.
|
struct sockaddr * | operator* () const |
| Return the full socket address list by pointer reference.
|
struct sockaddr * | operator-> () const |
| Return member from typed object our pointer references.
|
void | operator= (struct addrinfo *list) |
| Assign our pointer from an address list.
|
void | operator= (Socket::address &list) |
| Assign our pointer from an address list.
|
void | set (struct addrinfo *list) |
| Assign our pointer from an address list.
|
void | set (Socket::address &list) |
| Assign our pointer from an address list.
|
Detailed Description
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@gnutelephony.org>
Definition at line 1872 of file socket.h.
Member Function Documentation
Test if the address list is valid.
- Returns:
- true if we have an address list.
Definition at line 1925 of file socket.h.
Get the full socket address list by casted reference.
- Returns:
- addrinfo list we resolved or NULL if none.
Definition at line 1891 of file socket.h.
Test if we have no address list.
- Returns:
- true if we have no address list.
Definition at line 1968 of file socket.h.
Return the full socket address list by pointer reference.
- Returns:
- addrinfo list we resolved or NULL if none.
Definition at line 1898 of file socket.h.
Return member from typed object our pointer references.
- Returns:
- evaluated member of object we point to.
Definition at line 1961 of file socket.h.
Assign our pointer from an address list.
- Parameters:
-
Definition at line 1932 of file socket.h.
Assign our pointer from an address list.
- Parameters:
-
Definition at line 1939 of file socket.h.
Assign our pointer from an address list.
- Parameters:
-
Definition at line 1946 of file socket.h.
Assign our pointer from an address list.
- Parameters:
-
Definition at line 1953 of file socket.h.
The documentation for this class was generated from the following file:
- /usr/src/RPM/BUILD/ucommon-6.3.3/inc/ucommon/socket.h