mongo::MessagingPort Class Reference

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

List of all members.

Public Member Functions

 MessagingPort (int fd, const SockAddr &remote)
 MessagingPort (double so_timeout=0, int logLevel=0)
void shutdown ()
bool recv (Message &m)
void reply (Message &received, Message &response, MSGID responseTo)
void reply (Message &received, Message &response)
bool call (Message &toSend, Message &response)
void say (Message &toSend, int responseTo=-1)
bool recv (const Message &sent, Message &response)
 this is used for doing 'async' queries instead of doing call( to , from ) you would do say( to ) recv( from ) Note: if you fail to call recv and someone else uses this port, horrible things will happend
void piggyBack (Message &toSend, int responseTo=-1)
unsigned remotePort () const
virtual HostAndPort remote () const

Static Public Member Functions

static void closeAllSockets (unsigned tagMask=0xffffffff)

Friends

class PiggyBackData

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