00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TAO_ECG_SIMPLE_ADDRESS_SERVER_H
00013 #define TAO_ECG_SIMPLE_ADDRESS_SERVER_H
00014 #include "ace/pre.h"
00015
00016 #include "orbsvcs/RtecUDPAdminS.h"
00017 #include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
00018 #include "ace/INET_Addr.h"
00019
00020 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 class TAO_RTEvent_Serv_Export TAO_ECG_Simple_Address_Server :
00031 public virtual POA_RtecUDPAdmin::AddrServer
00032 {
00033 public:
00034
00035
00036
00037
00038 static TAO_EC_Servant_Var<TAO_ECG_Simple_Address_Server> create (void);
00039
00040
00041 virtual ~TAO_ECG_Simple_Address_Server (void);
00042
00043 int init (const char *arg);
00044
00045
00046 virtual void get_addr (const RtecEventComm::EventHeader& header,
00047 RtecUDPAdmin::UDP_Addr_out addr);
00048 virtual void get_address (const RtecEventComm::EventHeader& header,
00049 RtecUDPAdmin::UDP_Address_out addr6);
00050
00051 protected:
00052
00053
00054
00055
00056 TAO_ECG_Simple_Address_Server (void);
00057
00058 private:
00059 ACE_INET_Addr addr_;
00060 };
00061
00062 TAO_END_VERSIONED_NAMESPACE_DECL
00063
00064 #if defined(__ACE_INLINE__)
00065 #include "orbsvcs/Event/ECG_Simple_Address_Server.inl"
00066 #endif
00067
00068 #include "ace/post.h"
00069 #endif