mongo::Listener Class Reference

#include <message.h>

Inheritance diagram for mongo::Listener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void accepted (MessagingPort *mp)
virtual void accepted (int sock, const SockAddr &from)
long long getMyElapsedTimeMillis () const
void initAndListen ()
 Listener (const string &ip, int p, bool logConnect=true)
void setAsTimeTracker ()
virtual ~Listener ()

Static Public Member Functions

static long long getElapsedTimeMillis ()
static const ListenergetTimeTracker ()

Public Attributes

const int _port

Private Attributes

long long _elapsedTime
string _ip
bool _logConnect

Static Private Attributes

static const Listener_timeTracker

Detailed Description

Definition at line 33 of file message.h.


Constructor & Destructor Documentation

mongo::Listener::Listener ( const string &  ip,
int  p,
bool  logConnect = true 
) [inline]

Definition at line 35 of file message.h.

virtual mongo::Listener::~Listener (  )  [inline, virtual]

Definition at line 36 of file message.h.


Member Function Documentation

virtual void mongo::Listener::accepted ( MessagingPort mp  )  [inline, virtual]

Definition at line 44 of file message.h.

virtual void mongo::Listener::accepted ( int  sock,
const SockAddr from 
) [virtual]

Reimplemented in mongo::MiniWebServer.

static long long mongo::Listener::getElapsedTimeMillis (  )  [inline, static]

Definition at line 63 of file message.h.

long long mongo::Listener::getMyElapsedTimeMillis (  )  const [inline]
Returns:
a rough estimate of elepased time since the server started

Definition at line 53 of file message.h.

static const Listener* mongo::Listener::getTimeTracker (  )  [inline, static]

Definition at line 59 of file message.h.

void mongo::Listener::initAndListen (  ) 
void mongo::Listener::setAsTimeTracker (  )  [inline]

Definition at line 55 of file message.h.


Member Data Documentation

long long mongo::Listener::_elapsedTime [private]

Definition at line 74 of file message.h.

string mongo::Listener::_ip [private]

Definition at line 72 of file message.h.

Definition at line 73 of file message.h.

Definition at line 48 of file message.h.

const Listener* mongo::Listener::_timeTracker [static, private]

Definition at line 76 of file message.h.


The documentation for this class 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:55 2013