~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/tests/AVStreams/Multicast/server.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// server.h,v 1.6 2001/09/04 01:14:46 crodrigu Exp
3
 
 
4
 
#include "ace/Get_Opt.h"
5
 
#include "tao/Strategies/advanced_resource.h"
6
 
#include "orbsvcs/orbsvcs/CosNamingC.h"
7
 
#include "orbsvcs/Naming/Naming_Utils.h"
8
 
#include "orbsvcs/AV/AVStreams_i.h"
9
 
#include "orbsvcs/AV/Endpoint_Strategy.h"
10
 
#include "orbsvcs/AV/Transport.h"
11
 
#include "orbsvcs/AV/sfp.h"
12
 
#include "orbsvcs/AV/MCast.h"
13
 
#include "orbsvcs/AV/Policy.h"
14
 
 
15
 
class FTP_Server_StreamEndPoint
16
 
  :public TAO_Server_StreamEndPoint
17
 
{
18
 
public:
19
 
  FTP_Server_StreamEndPoint (void);
20
 
  virtual int get_callback (const char *flowname,
21
 
                            TAO_AV_Callback *&callback);
22
 
};
23
 
 
24
 
class FTP_Server_Callback
25
 
  :public TAO_AV_Callback
26
 
{
27
 
public:
28
 
  virtual int handle_stop (void);
29
 
  virtual int receive_frame (ACE_Message_Block *frame,
30
 
                             TAO_AV_frame_info *,
31
 
                             const ACE_Addr &);
32
 
  virtual int handle_end_stream (void);
33
 
};
34
 
 
35
 
class Server
36
 
{
37
 
public:
38
 
  Server (void);
39
 
  int init (int argc,
40
 
            char **argv);
41
 
  int run (void);
42
 
  FILE *file (void);
43
 
protected:
44
 
  int parse_args (int argc,char **argv);
45
 
  TAO_Naming_Client my_naming_client_;
46
 
  TAO_AV_Endpoint_Reactive_Strategy_B <FTP_Server_StreamEndPoint,TAO_VDev,AV_Null_MediaCtrl> reactive_strategy_;
47
 
  TAO_MMDevice *mmdevice_;
48
 
  FILE *fp_;
49
 
  char *protocol_;
50
 
};
51
 
 
52
 
typedef ACE_Singleton<Server,ACE_Null_Mutex> FTP_SERVER;