mongo::SockAddr Struct Reference

wrapped around os representation of network address More...

#include <sock.h>

List of all members.

Public Member Functions

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

Public Attributes

socklen_t addressSize

Detailed Description

wrapped around os representation of network address

Member Function Documentation

sa_family_t mongo::SockAddr::getType (  )  const
one of AF_INET, AF_INET6, or AF_UNIX

The documentation for this struct was generated from the following files:
Generated on Wed Sep 14 01:46:40 2011 for MongoDB by  doxygen 1.6.3