diff options
author | sumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-27 04:57:51 +0000 |
---|---|---|
committer | sumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-27 04:57:51 +0000 |
commit | 9667a21416035285fc55d763ba1c72cadc854ef0 (patch) | |
tree | 5cc55f5941a907f9711c686d88c26b0f3d5ca297 | |
parent | a0ebef718600204668f717238e2bfa16e528e1c5 (diff) | |
download | ATCD-9667a21416035285fc55d763ba1c72cadc854ef0.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/server.cpp | 44 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/server.h | 1 |
2 files changed, 40 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/server.cpp b/TAO/orbsvcs/tests/AVStreams/server.cpp index d1c0e05fc93..2665367f639 100644 --- a/TAO/orbsvcs/tests/AVStreams/server.cpp +++ b/TAO/orbsvcs/tests/AVStreams/server.cpp @@ -16,9 +16,39 @@ // // ============================================================================ -#include "orbsvcs/AV/AVStreams_i.h" -/* #include "tao/tao.h" */ -#include "tao/tao_util.h" +#include "server.h" + +Video_Server_StreamEndPoint::Video_Server_StreamEndPoint () +{ +} + +void +Video_Server_StreamEndPoint::handle_stop (const AVStreams::flowSpec &the_spec, + CORBA::Environment &env) +{ +} + +void +Video_Server_StreamEndPoint::handle_start (const AVStreams::flowSpec &the_spec, + CORBA::Environment &env) +{ +} + +void +Video_Server_StreamEndPoint::handle_destroy (const AVStreams::flowSpec &the_spec, + CORBA::Environment &env) +{ +} + +CORBA::Boolean +Video_Server_StreamEndPoint::handle_connection_requested (AVStreams::StreamEndPoint_ptr initiator, + CORBA::Boolean is_mcast, + AVStreams::streamQoS &qos, + AVStreams::flowSpec &the_spec, + CORBA::Environment &env) +{ + return 1; +} int main (int argc, char ** argv) @@ -27,23 +57,29 @@ main (int argc, char ** argv) { TAO_ORB_Manager m; + // Initialize the ORB m.init (argc, argv, TAO_TRY_ENV); TAO_CHECK_ENV; - TAO_MMDevice *mmdevice_impl = new TAO_MMDevice; + // Create server-side MMDevice + TAO_Server_MMDevice <Video_Server_StreamEndPoint> *mmdevice_impl + = new TAO_Server_MMDevice <Video_Server_StreamEndPoint>; TAO_CHECK_ENV; + // Activate the MMDevice, i.e. register with POA CORBA::String_var s; s = m.activate (mmdevice_impl, TAO_TRY_ENV); TAO_CHECK_ENV; + // Print the IOR ACE_DEBUG ((LM_DEBUG, "\nThe IOR is: <%s>\n", s.in ())); + // Run the ORB Event loop m.run (TAO_TRY_ENV); TAO_CHECK_ENV; } diff --git a/TAO/orbsvcs/tests/AVStreams/server.h b/TAO/orbsvcs/tests/AVStreams/server.h index e97283f9034..4d659125857 100644 --- a/TAO/orbsvcs/tests/AVStreams/server.h +++ b/TAO/orbsvcs/tests/AVStreams/server.h @@ -22,7 +22,6 @@ #define AVSTREAMS_SERVER_H #include "orbsvcs/AV/AVStreams_i.h" -/* #include "tao/tao.h" */ #include "tao/tao_util.h" |