summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/server.cpp')
-rw-r--r--TAO/orbsvcs/tests/AVStreams/server.cpp106
1 files changed, 0 insertions, 106 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/server.cpp b/TAO/orbsvcs/tests/AVStreams/server.cpp
deleted file mode 100644
index 96e3075e233..00000000000
--- a/TAO/orbsvcs/tests/AVStreams/server.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/orbsvcs/tests/AVStreams
-//
-// = FILENAME
-// server.cpp
-//
-// = DESCRIPTION
-// Test server for the AVStreams demo
-//
-// = AUTHORS
-// Sumedh Mungee <sumedh@cs.wustl.edu>
-//
-// ============================================================================
-
-#include "server.h"
-
-// Callbacks made by the AVStreams library into the application.
-
-Video_Server_StreamEndPoint::Video_Server_StreamEndPoint (void)
-{
-}
-
-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;
-}
-
-// Main program
-
-int
-main (int argc, char ** argv)
-{
- TAO_TRY
- {
- TAO_ORB_Manager m;
-
- // Initialize the ORB.
- m.init (argc,
- argv,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Create server-side MMDevice.
- TAO_Server_MMDevice <Video_Server_StreamEndPoint> *mmdevice_impl;
- ACE_NEW_RETURN (mmdevice_impl,
- TAO_Server_MMDevice <Video_Server_StreamEndPoint>,
- -1);
- TAO_CHECK_ENV;
-
- // Activate the MMDevice, i.e., register with POA.
- CORBA::String_var 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;
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- TAO_TRY_ENV.print_exception ("System Exception");
- return -1;
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- TAO_TRY_ENV.print_exception ("User Exception");
- return -1;
- }
- TAO_ENDTRY;
- ACE_DEBUG ((LM_DEBUG,
- "\nServer is terminating"));
- return 0;
-}
-