src/experiments/rescuer/DGSCommon/SerialConsole.cpp
int SerialConsole::svc()
{
    // Activate the task (thread) that reads from the keyboard.
    _mykeyboardreader.activate();
    for (;;)
    {
        //wait for the answer
        ACE_Message_Block * response_block;
        ACE_DEBUG((LM_NOTICE, ACE_TEXT("%N Line %l SerialConsole::svc Waiting Response\n")));
        getq(response_block);
        ACE_DEBUG((LM_NOTICE, ACE_TEXT("%N Line %l SerialConsole::svc Response Received\n")));
        response_block->rd_ptr()[response_block->length()] = '\0';
        ACE_OS::printf("%s", response_block->rd_ptr());
    }
    return 0;
}
/** 
 *  SerialHandler::svc This is a loop reading for input from the internal
 *  queue.
 * @return 
 */
:svc This is a loop reading for input from the internal
queue.
@return
: svc This is a loop reading for input from the internal queue . @return
int SerialConsole::svc()
{
    _mykeyboardreader.activate();
    for (;;)
    {
        ACE_Message_Block * response_block;
        ACE_DEBUG((LM_NOTICE, ACE_TEXT("%N Line %l SerialConsole::svc Waiting Response\n")));
        getq(response_block);
        ACE_DEBUG((LM_NOTICE, ACE_TEXT("%N Line %l SerialConsole::svc Response Received\n")));
        response_block->rd_ptr()[response_block->length()] = '\0';
        ACE_OS::printf("%s", response_block->rd_ptr());
    }
    return 0;
}
int SerialConsole :: svc ( ) { _mykeyboardreader . activate ( ) ; for ( ; ; ) { ACE_Message_Block * response_block ; ACE_DEBUG ( ( LM_NOTICE , ACE_TEXT ( " \n " ) ) ) ; getq ( response_block ) ; ACE_DEBUG ( ( LM_NOTICE , ACE_TEXT ( " \n " ) ) ) ; response_block -> rd_ptr ( ) [ response_block -> length ( ) ] = ' \0 ' ; ACE_OS :: printf ( " " , response_block -> rd_ptr ( ) ) ; } return 0 ; }
SerialHandler::svc This is a loop reading for input from the internal
  queue.
SerialHandler :: svc This is a loop reading for input from the internal queue .
// Activate the task (thread) that reads from the keyboard. //wait for the answer