UCommon
Public Member Functions
ucommon::linked_pointer< sockaddr_struct > Class Template Reference

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. More...
 
 operator struct sockaddr * () const
 Get the full socket address list by casted reference. More...
 
 operator struct sockaddr_in * () const
 
 operator 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.
 
struct sockaddr * operator* () const
 Return the full socket address list by pointer reference. More...
 
struct sockaddr * operator-> () const
 Return member from typed object our pointer references. More...
 
void operator= (struct addrinfo *list)
 Assign our pointer from an address list. More...
 
void operator= (Socket::address &list)
 Assign our pointer from an address list. More...
 
void set (struct addrinfo *list)
 Assign our pointer from an address list. More...
 
void set (Socket::address &list)
 Assign our pointer from an address list. More...
 

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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 1898 of file socket.h.

Member Function Documentation

ucommon::linked_pointer< sockaddr_struct >::operator bool ( ) const
inline

Test if the address list is valid.

Returns
true if we have an address list.

Definition at line 1951 of file socket.h.

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

Get the full socket address list by casted reference.

Returns
addrinfo list we resolved or NULL if none.

Definition at line 1917 of file socket.h.

Here is the call graph for this function:

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

Test if we have no address list.

Returns
true if we have no address list.

Definition at line 1994 of file socket.h.

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

Return the full socket address list by pointer reference.

Returns
addrinfo list we resolved or NULL if none.

Definition at line 1924 of file socket.h.

Here is the call graph for this function:

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

Return member from typed object our pointer references.

Returns
evaluated member of object we point to.

Definition at line 1987 of file socket.h.

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
pointerof linked list.

Definition at line 1958 of file socket.h.

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

Assign our pointer from an address list.

Parameters
pointerof linked list.

Definition at line 1965 of file socket.h.

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
pointerof linked list.

Definition at line 1972 of file socket.h.

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

Assign our pointer from an address list.

Parameters
pointerof linked list.

Definition at line 1979 of file socket.h.

Here is the call graph for this function:


The documentation for this class was generated from the following file: