ucommon::linked_pointer< sockaddr_struct > Class Template Reference

Linked pointer for address lists. More...

#include <socket.h>


Public Member Functions

sockaddr_in * in (void)
sockaddr_in6 * in6 (void)
 linked_pointer (Socket::address &list)
 linked_pointer ()
 linked_pointer (struct addrinfo *list)
void next (void)
sockaddr * operator * ()
 Return the full socket address list by pointer reference.
 operator bool ()
 Test if the address list is valid.
 operator struct sockaddr * ()
 Get the full socket address list by casted reference.
 operator struct sockaddr_in * ()
 operator struct sockaddr_in6 * ()
bool operator! ()
 Test if we have no address list.
socket_t operator() (void)
 Get socket as expression operator.
sockaddr * operator-> ()
 Return member from typed object our pointer references.
void operator= (Socket::address &list)
 Assign our pointer from an address list.
void operator= (struct addrinfo *list)
 Assign our pointer from an address list.
void set (Socket::address &list)
 Assign our pointer from an address list.
void set (struct addrinfo *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 1679 of file socket.h.


Member Function Documentation

struct sockaddr* ucommon::linked_pointer< sockaddr_struct >::operator * (  )  [inline]

Return the full socket address list by pointer reference.

Returns:
addrinfo list we resolved or NULL if none.

Definition at line 1705 of file socket.h.

References ucommon::_getaddrinfo().

Here is the call graph for this function:

ucommon::linked_pointer< sockaddr_struct >::operator bool (  )  [inline]

Test if the address list is valid.

Returns:
true if we have an address list.

Definition at line 1732 of file socket.h.

ucommon::linked_pointer< sockaddr_struct >::operator struct sockaddr * (  )  [inline]

Get the full socket address list by casted reference.

Returns:
addrinfo list we resolved or NULL if none.

Definition at line 1698 of file socket.h.

References ucommon::_getaddrinfo().

Here is the call graph for this function:

bool ucommon::linked_pointer< sockaddr_struct >::operator! (  )  [inline]

Test if we have no address list.

Returns:
true if we have no address list.

Definition at line 1775 of file socket.h.

struct sockaddr* ucommon::linked_pointer< sockaddr_struct >::operator-> (  )  [inline]

Return member from typed object our pointer references.

Returns:
evaluated member of object we point to.

Definition at line 1768 of file socket.h.

References ucommon::_getaddrinfo().

Here is the call graph for this function:

void ucommon::linked_pointer< sockaddr_struct >::operator= ( Socket::address list  )  [inline]

Assign our pointer from an address list.

Parameters:
pointer of linked list.

Definition at line 1746 of file socket.h.

References ucommon::Socket::address::getList().

Here is the call graph for this function:

void ucommon::linked_pointer< sockaddr_struct >::operator= ( struct addrinfo *  list  )  [inline]

Assign our pointer from an address list.

Parameters:
pointer of linked list.

Definition at line 1739 of file socket.h.

void ucommon::linked_pointer< sockaddr_struct >::set ( Socket::address list  )  [inline]

Assign our pointer from an address list.

Parameters:
pointer of linked list.

Definition at line 1760 of file socket.h.

References ucommon::Socket::address::getList().

Here is the call graph for this function:

void ucommon::linked_pointer< sockaddr_struct >::set ( struct addrinfo *  list  )  [inline]

Assign our pointer from an address list.

Parameters:
pointer of linked list.

Definition at line 1753 of file socket.h.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7