Object that helps the server manage host connections. More...
#include <srv-hosts.h>

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< HostManager > | create (IN int udpSize) |
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.
1.7.1