diff options
author | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-20 23:37:29 +0000 |
---|---|---|
committer | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-20 23:37:29 +0000 |
commit | b17e0c4209aa9a92271f04b5cb6b37a4ce536cac (patch) | |
tree | 9653a1e01cf77e49a365cbafa1b22e8f394418c9 /TAO/orbsvcs/tests/AVStreams/Full_Profile | |
parent | 53627542f2278fcb1d20be88903ff8dd7bbddc73 (diff) | |
download | ATCD-b17e0c4209aa9a92271f04b5cb6b37a4ce536cac.tar.gz |
Replaced the TAO_AV_Core run with the orb run
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/Full_Profile')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp index 6303c91d3ef..e77660a074f 100644 --- a/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Full_Profile/ftp.cpp @@ -51,7 +51,12 @@ FTP_Client_Callback::handle_timeout (void *) int n = ACE_OS::fread(buf,1,mb.size (),CLIENT::instance ()->file ()); if (n < 0) { - ACE_ERROR_RETURN ((LM_ERROR,"FTP_Client_Flow_Handler::fread end of file\n"),-1); + ACE_TRY_NEW_ENV + { + ACE_ERROR_RETURN ((LM_ERROR,"FTP_Client_Flow_Handler::fread end of file\n"),-1); + TAO_AV_CORE::instance ()->orb_manager ()->fini (ACE_TRY_ENV); + } + ACE_ENDTRY; } if (n == 0) { @@ -69,6 +74,7 @@ FTP_Client_Callback::handle_timeout (void *) CLIENT::instance ()->streamctrl ()->destroy (stop_spec,ACE_TRY_ENV); ACE_CHECK_RETURN (-1); TAO_AV_CORE::instance ()->stop_run (); + TAO_AV_CORE::instance ()->orb_manager ()->fini (ACE_TRY_ENV); return 0; } else @@ -191,7 +197,8 @@ Client::Client (void) client_mmdevice_ (&endpoint_strategy_), fdev_ (0), fp_ (0), - protocol_ (ACE_OS::strdup ("UDP")) + protocol_ (ACE_OS::strdup ("UDP")), + address_ ("") { } @@ -358,7 +365,13 @@ Client::run (void) this->streamctrl_.start (start_spec,ACE_TRY_ENV); ACE_TRY_CHECK; // Schedule a timer for the for the flow handler. - TAO_AV_CORE::instance ()->run (); + //TAO_AV_CORE::instance ()->run (); + ACE_Time_Value tv (10000,0); + if (TAO_AV_CORE::instance ()->orb_manager ()->run (tv) == -1) + ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "orb->run"), -1); + ACE_DEBUG ((LM_DEBUG, "event loop finished\n")); + + ACE_DEBUG ((LM_DEBUG, "Exited the TAO_AV_Core::run\n")); } ACE_CATCHANY { |