mongo::SockAddr Struct Reference

#include <sock.h>

List of all members.

Public Member Functions

template<typename T >
const T & as () const
template<typename T >
T & as ()
string getAddr () const
unsigned getPort () const
sa_family_t getType () const
bool isLocalHost () const
bool operator!= (const SockAddr &r) const
bool operator< (const SockAddr &r) const
bool operator== (const SockAddr &r) const
sockaddr * raw ()
const sockaddr * raw () const
 SockAddr (const char *ip, int port)
 SockAddr (int sourcePort)
 SockAddr ()
string toString (bool includePort=true) const

Public Attributes

socklen_t addressSize

Private Attributes

struct sockaddr_storage sa

Detailed Description

Definition at line 135 of file sock.h.


Constructor & Destructor Documentation

mongo::SockAddr::SockAddr (  )  [inline]

Definition at line 136 of file sock.h.

mongo::SockAddr::SockAddr ( int  sourcePort  ) 
mongo::SockAddr::SockAddr ( const char *  ip,
int  port 
)

Member Function Documentation

template<typename T >
const T& mongo::SockAddr::as (  )  const [inline]

Definition at line 147 of file sock.h.

template<typename T >
T& mongo::SockAddr::as (  )  [inline]

Definition at line 145 of file sock.h.

string mongo::SockAddr::getAddr (  )  const [inline]

Definition at line 171 of file sock.h.

unsigned mongo::SockAddr::getPort (  )  const [inline]

Definition at line 161 of file sock.h.

sa_family_t mongo::SockAddr::getType (  )  const [inline]

Definition at line 157 of file sock.h.

bool mongo::SockAddr::isLocalHost (  )  const
bool mongo::SockAddr::operator!= ( const SockAddr r  )  const [inline]

Definition at line 205 of file sock.h.

bool mongo::SockAddr::operator< ( const SockAddr r  )  const [inline]

Definition at line 208 of file sock.h.

bool mongo::SockAddr::operator== ( const SockAddr r  )  const [inline]

Definition at line 190 of file sock.h.

sockaddr* mongo::SockAddr::raw (  )  [inline]

Definition at line 229 of file sock.h.

const sockaddr* mongo::SockAddr::raw (  )  const [inline]

Definition at line 228 of file sock.h.

string mongo::SockAddr::toString ( bool  includePort = true  )  const [inline]

Definition at line 149 of file sock.h.


Member Data Documentation

Definition at line 231 of file sock.h.

struct sockaddr_storage mongo::SockAddr::sa [private]

Definition at line 233 of file sock.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:58 2013