Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / IOR_MCast / server_i.h
blob278511cb33feb80cf3099b037a41889437e2e547
1 // -*- C++ -*-
2 #ifndef SERVER_I_H
3 #define SERVER_I_H
5 #include "orbsvcs/IOR_Multicast.h"
7 class Server_i
9 // = TITLE
10 // Server_i
12 // = DESCRIPTION
13 // Helper class for the server implementation.
15 public:
16 // = Constructor and destructor.
17 Server_i (void);
18 ~Server_i (void);
20 int init (int &argc, ACE_TCHAR **argv);
21 // Initialize the server multicast.
23 private:
25 /// Sets the IOR_Multicast class to listen for multicast requests
26 // for this server.
27 int enable_multicast (const char *ior);
29 /// Parse the command line arguments.
30 int parse_args (int argc, ACE_TCHAR *argv[]);
32 private:
34 int argc_;
35 // # of arguments on the command line.
37 ACE_TCHAR **argv_;
38 // arguments from command line.
40 CORBA::ORB_var orb_;
41 // ORB
43 TAO_IOR_Multicast *ior_multicast_;
44 // The ior_multicast event handler.
46 CORBA::String_var service_ior_;
47 // The IOR string of the service.
49 CORBA::String_var mcast_address_;
50 // Address of the multicast address where to listen for requests for */
51 // the server. */
56 #endif /* SERVER_I_H */