Classes | Public Member Functions | Static Public Member Functions

aesop::HostManager Class Reference
[Host and Connection Management]

Object that helps the server manage host connections. More...

#include <srv-hosts.h>

Inheritance diagram for aesop::HostManager:
Inheritance graph
[legend]

List of all members.

Classes

struct  iterator_t

Public Member Functions

virtual ~HostManager (void) throw ()
virtual void addHost (IN conn_id_t udpConnID, IN long udpToken, IN const char *publicKey)=0
virtual bool getHostByUdpConnectionID (IN conn_id_t udpConnId, OUT host_rec_t &hr)=0
 This is the most efficient lookup (by UDP connection ID).
virtual bool getHostByTcpConnectionID (IN conn_id_t tcpConnId, OUT host_rec_t &hr)=0
virtual void updateHost (IN host_rec_t &hr)=0
virtual bool removeHost (IN conn_id_t hostId)=0
virtual void getIterator (OUT iterator_t &iterator)=0
 requests a new iterator.
virtual bool getNextHost (IO iterator_t &iterator, OUT host_rec_t &hr)=0
 returns the host for this iteration, and increments iterator

Static Public Member Functions

static smart_ptr< HostManagercreate (IN int udpSize)

Detailed Description

Object that helps the server manage host connections.

NOTE: (to implementers) all methods should be threadsafe!

Definition at line 99 of file srv-hosts.h.


The documentation for this class was generated from the following files: