mongo::Socket Class Reference

thin wrapped around file descriptor and system calls todo: ssl More...

#include <sock.h>

Inheritance diagram for mongo::Socket:
mongo::MessagingPort

List of all members.

Public Member Functions

 Socket (int sock, const SockAddr &farEnd)
 Socket (double so_timeout=0, int logLevel=0)
bool connect (SockAddr &farEnd)
void close ()
void send (const char *data, int len, const char *context)
void send (const vector< pair< char *, int > > &data, const char *context)
void recv (char *data, int len)
int unsafe_recv (char *buf, int max)
int getLogLevel () const
void setLogLevel (int ll)
SockAddr remoteAddr () const
string remoteString () const
unsigned remotePort () const
void clearCounters ()
long long getBytesIn () const
long long getBytesOut () const

Protected Attributes

int _logLevel

Detailed Description

thin wrapped around file descriptor and system calls todo: ssl


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