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
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
26 virtual int handle_stop ();
27 virtual int receive_frame (ACE_Message_Block
*frame
,
30 virtual int handle_end_stream ();
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_
;
50 typedef ACE_Unmanaged_Singleton
<Server
,ACE_Null_Mutex
> FTP_SERVER
;