3 //=============================================================================
7 * Definition of the Chat Server_i class.
9 * @author Pradeep Gore <pradeep@cs.wustl.edu>
11 //=============================================================================
17 #include "Broadcaster_i.h"
18 #include "tao/Utils/ORB_Manager.h"
19 #include "tao/Intrusive_Ref_Count_Handle_T.h"
24 * @brief The class defines the server for the chat. It sets up the Orb
25 * manager and registers the Broadcaster servant object.
36 /// Initialize the server.
44 /// Parses the command line arguments.
45 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
47 /// Writes the server ior to a file, for the clients to pick up
49 int write_IOR (const char *ior
);
51 /// The file name to save the ior to.
52 const ACE_TCHAR
*ior_file_name_
;
54 /// The tao orb manager object.
55 TAO_ORB_Manager orb_manager_
;
57 /// The servant object registered with the orb.
58 typedef TAO_Intrusive_Ref_Count_Handle
<Broadcaster_i
> Broadcaster_i_var
;
59 Broadcaster_i_var broadcaster_i_
;
62 #endif /* SERVER_I_H */