blob: b7c0f43044c42b11008bfd0472a866748670d6bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// $Id$
#if !defined (TAO_AV_BENCH_CHILD_H)
#define TAO_AV_BENCH_CHILD_H
#include "ace/Get_Opt.h"
#include "ace/Acceptor.h"
#include "ace/Svc_Handler.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_CODgram.h"
#include "ace/Select_Reactor.h"
#include "orbsvcs/orbsvcs/Naming/Naming_Utils.h"
#include "orbsvcs/AV/AVStreams_i.h"
#include "ace/SOCK_Connector.h"
#include "client.h"
class Bench_Server_StreamEndPoint :
public virtual TAO_Server_StreamEndPoint
{
public:
virtual int handle_open (void) ;
// called when streamendpoint is instantiated
virtual int handle_close (void) ;
// called when streamendpoint is being destructed
virtual int handle_stop (const AVStreams::flowSpec &the_spec,
CORBA::Environment &env) ;
// Application needs to define this
virtual int handle_start (const AVStreams::flowSpec &the_spec,
CORBA::Environment &env) ;
// Application needs to define this
virtual int handle_destroy (const AVStreams::flowSpec &the_spec,
CORBA::Environment &env) ;
// Application needs to define this
virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec,
CORBA::Environment &env) ;
private:
ACE_SOCK_Connector connector_;
ACE_SOCK_Stream tcp_stream_;
};
#endif /* TAO_AV_BENCH_CHILD_H */
|