summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/server.h
blob: 6ffd90859b416b60e8a8f02e957a27c61fb48165 (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
50
51
52
53
54
55
56
57
/* -*- C++ -*- */
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/orbsvcs/tests/AVStreams
//
// = FILENAME
//    server.h
//
// = DESCRIPTION 
//    Test server for the AVStreams demo
//   
// = AUTHORS
//   Sumedh Mungee <sumedh@cs.wustl.edu>
//
// ============================================================================

#if !defined (AVSTREAMS_SERVER_H)
#define AVSTREAMS_SERVER_H

#include "orbsvcs/AV/AVStreams_i.h"
#include "tao/TAO.h"

class Video_Server_StreamEndPoint : public virtual TAO_Server_StreamEndPoint
{
  // = TITLE
  //    Server Stream Endpoint for A/V Streams demo.
  //
  // = DESCRIPTION
  //    Encapsulates server side transport functionality.
public:
  Video_Server_StreamEndPoint (void);
  // Constructor.
  
  virtual int handle_stop (const AVStreams::flowSpec &the_spec,
                            CORBA::Environment &env);
  // Handles stream stoppage.
  
  virtual int handle_start (const AVStreams::flowSpec &the_spec,  
                             CORBA::Environment &env);
  // Handles stream start. Starts the flow of data.
  
  virtual int handle_destroy (const AVStreams::flowSpec &the_spec,  
                               CORBA::Environment &env);
  // Handles the destruction of the stream, tears down the transport.

  virtual CORBA::Boolean handle_connection_requested (AVStreams::StreamEndPoint_ptr initiator, 
                                                      CORBA::Boolean is_mcast, 
                                                      AVStreams::streamQoS &qos, 
                                                      AVStreams::flowSpec &the_spec,  
                                                      CORBA::Environment &env);
  // Handles stream bind, establishes the transport.
};

#endif /* AVSTREAMS_SERVER_H */