Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

AddressServer Class Reference

#include <AddressServer.h>

List of all members.

Public Member Functions

 AddressServer (u_short port=ACE_DEFAULT_MULTICAST_PORT, const char *mcast_addr=ACE_DEFAULT_MULTICAST_ADDR, const char *mcast_iface=NULL)
 AddressServer (const ACE_INET_Addr &mcast_addr, const char *mcast_iface=NULL)
 ~AddressServer (void)
int SetLoopbackEnable (bool enabled)
int SetTimeToLive (u_char ttl)
int RegisterWithReactor (ACE_Reactor &theReactor)
int RemoveFromReactor (ACE_Reactor &theReactor)
virtual int handle_input (ACE_HANDLE fd)
virtual ACE_HANDLE get_handle (void) const

Protected Member Functions

int SendString (const char *str, const ACE_INET_Addr &dest)
int NotifyChange ()
int NotifyChange (u_int id)

Private Types

typedef std::multimap< u_int,
std::string > 
BindMap_t
typedef BindMap_t::value_type BindValue_t
typedef std::map< u_int, ACE_INET_Addr > NotificationMap_t
typedef NotificationMap_t::value_type NotificationValue_t

Private Attributes

ACE_INET_Addr m_remoteAddr
char m_buf [BUFSIZ]
ACE_SOCK_Dgram m_replySocket
ACE_SOCK_Dgram_Mcast m_mcastDgram
ACE_INET_Addr m_mcastAddr
BindMap_t m_bindings
NotificationMap_t m_observers
u_int m_nextObserverID


Member Typedef Documentation

typedef std::multimap<u_int, std::string> AddressServer::BindMap_t [private]
 

Definition at line 133 of file AddressServer.h.

typedef BindMap_t::value_type AddressServer::BindValue_t [private]
 

Definition at line 137 of file AddressServer.h.

Referenced by handle_input().

typedef std::map<u_int,ACE_INET_Addr> AddressServer::NotificationMap_t [private]
 

Definition at line 142 of file AddressServer.h.

typedef NotificationMap_t::value_type AddressServer::NotificationValue_t [private]
 

Definition at line 146 of file AddressServer.h.

Referenced by handle_input().


Constructor & Destructor Documentation

AddressServer::AddressServer u_short  port = ACE_DEFAULT_MULTICAST_PORT,
const char *  mcast_addr = ACE_DEFAULT_MULTICAST_ADDR,
const char *  mcast_iface = NULL
[explicit]
 

Definition at line 11 of file AddressServer.cpp.

References m_mcastDgram, and m_replySocket.

AddressServer::AddressServer const ACE_INET_Addr &  mcast_addr,
const char *  mcast_iface = NULL
[explicit]
 

Definition at line 23 of file AddressServer.cpp.

References m_mcastDgram, and m_replySocket.

AddressServer::~AddressServer void   ) 
 

Definition at line 35 of file AddressServer.cpp.

References m_mcastDgram.


Member Function Documentation

ACE_HANDLE AddressServer::get_handle void   )  const [virtual]
 

Definition at line 95 of file AddressServer.cpp.

References m_mcastDgram.

int AddressServer::handle_input ACE_HANDLE  fd  )  [virtual]
 

Definition at line 104 of file AddressServer.cpp.

References BindValue_t, m_bindings, m_buf, m_mcastDgram, m_nextObserverID, m_observers, m_remoteAddr, NotificationValue_t, NotifyChange(), and SendString().

int AddressServer::NotifyChange u_int  id  )  [protected]
 

Definition at line 363 of file AddressServer.cpp.

References m_observers, and SendString().

int AddressServer::NotifyChange  )  [protected]
 

Definition at line 342 of file AddressServer.cpp.

References m_observers, and SendString().

Referenced by handle_input().

int AddressServer::RegisterWithReactor ACE_Reactor &  theReactor  ) 
 

Definition at line 69 of file AddressServer.cpp.

Referenced by PropertyBasedCommFactory::Open().

int AddressServer::RemoveFromReactor ACE_Reactor &  theReactor  ) 
 

Definition at line 82 of file AddressServer.cpp.

Referenced by PropertyBasedCommFactory::Close().

int AddressServer::SendString const char *  str,
const ACE_INET_Addr &  dest
[protected]
 

Definition at line 328 of file AddressServer.cpp.

References m_replySocket.

Referenced by handle_input(), and NotifyChange().

int AddressServer::SetLoopbackEnable bool  enabled  ) 
 

Definition at line 42 of file AddressServer.cpp.

References m_mcastDgram.

Referenced by PropertyBasedCommFactory::Open().

int AddressServer::SetTimeToLive u_char  ttl  ) 
 

Definition at line 57 of file AddressServer.cpp.

References m_mcastDgram.

Referenced by PropertyBasedCommFactory::Open().


Member Data Documentation

BindMap_t AddressServer::m_bindings [private]
 

Definition at line 155 of file AddressServer.h.

Referenced by handle_input().

char AddressServer::m_buf[BUFSIZ] [private]
 

Definition at line 149 of file AddressServer.h.

Referenced by handle_input().

ACE_INET_Addr AddressServer::m_mcastAddr [private]
 

Definition at line 153 of file AddressServer.h.

ACE_SOCK_Dgram_Mcast AddressServer::m_mcastDgram [private]
 

Definition at line 152 of file AddressServer.h.

Referenced by AddressServer(), get_handle(), handle_input(), SetLoopbackEnable(), SetTimeToLive(), and ~AddressServer().

u_int AddressServer::m_nextObserverID [private]
 

Definition at line 158 of file AddressServer.h.

Referenced by handle_input().

NotificationMap_t AddressServer::m_observers [private]
 

Definition at line 157 of file AddressServer.h.

Referenced by handle_input(), and NotifyChange().

ACE_INET_Addr AddressServer::m_remoteAddr [private]
 

Definition at line 148 of file AddressServer.h.

Referenced by handle_input().

ACE_SOCK_Dgram AddressServer::m_replySocket [private]
 

Definition at line 151 of file AddressServer.h.

Referenced by AddressServer(), and SendString().


The documentation for this class was generated from the following files:
Generated on Wed Sep 5 12:54:37 2007 for DSACSS Operational Code by  doxygen 1.3.9.1