Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / AVStreams / Multicast / server.h
bloba260b4ae471c8c3cc5e0ceacfc03a57ebcb07682
1 /* -*- C++ -*- */
2 #include "ace/Get_Opt.h"
3 #include "tao/Strategies/advanced_resource.h"
4 #include "orbsvcs/CosNamingC.h"
5 #include "orbsvcs/Naming/Naming_Client.h"
6 #include "orbsvcs/AV/AVStreams_i.h"
7 #include "orbsvcs/AV/Endpoint_Strategy.h"
8 #include "orbsvcs/AV/Transport.h"
9 #include "orbsvcs/AV/sfp.h"
10 #include "orbsvcs/AV/MCast.h"
11 #include "orbsvcs/AV/Policy.h"
13 class FTP_Server_StreamEndPoint
14 :public TAO_Server_StreamEndPoint
16 public:
17 FTP_Server_StreamEndPoint ();
18 virtual int get_callback (const char *flowname,
19 TAO_AV_Callback *&callback);
22 class FTP_Server_Callback
23 :public TAO_AV_Callback
25 public:
26 virtual int handle_stop ();
27 virtual int receive_frame (ACE_Message_Block *frame,
28 TAO_AV_frame_info *,
29 const ACE_Addr &);
30 virtual int handle_end_stream ();
33 class Server
35 public:
36 Server ();
37 int init (int argc,
38 ACE_TCHAR *argv[]);
39 int run ();
40 FILE *file ();
41 protected:
42 int parse_args (int argc, ACE_TCHAR *argv[]);
43 TAO_Naming_Client my_naming_client_;
44 TAO_AV_Endpoint_Reactive_Strategy_B <FTP_Server_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> reactive_strategy_;
45 TAO_MMDevice *mmdevice_;
46 FILE *fp_;
47 char *protocol_;
50 typedef ACE_Unmanaged_Singleton<Server,ACE_Null_Mutex> FTP_SERVER;