/**
 * @file Receive_Task.cpp
 *
 * Receive_Task.cpp,v 1.2 2002/01/29 20:20:52 okellogg Exp
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

#include "Receive_Task.h"

ACE_RCSID(EC_Colocated_Latency, Receive_Task, "Receive_Task.cpp,v 1.2 2002/01/29 20:20:52 okellogg Exp")

ECCL_Receive_Task::ECCL_Receive_Task (CORBA::ORB_ptr orb)
  :  orb_ (CORBA::ORB::_duplicate (orb))
{
}

int
ECCL_Receive_Task::svc (void)
{
  ACE_DECLARE_NEW_CORBA_ENV;
  ACE_TRY
    {
      this->orb_->run (ACE_ENV_SINGLE_ARG_PARAMETER);
      ACE_TRY_CHECK;
    }
  ACE_CATCHANY
    {
      return -1;
    }
  ACE_ENDTRY;
  return 0;
}
