certi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [certi-dev] RTIA shutdown


From: Eric Noulard
Subject: Re: [certi-dev] RTIA shutdown
Date: Fri, 3 Dec 2010 12:25:59 +0100

2010/12/3 Michael Raab <address@hidden>:
> Can you tell me where in RTIA this close_connection message is handled? I
> cannot find anything...

You can search in all sources for CLOSE_CONNEXION
You'll find it in

libCERTI/M_Classes.* which generated file (using message generator)
RTIA/RTIA_federate.cc which is where Federate-->RTIA message are handled

have a look at: RTIA::chooseFederateProcessing.

you'll see that the handling of the message is trivial:
        case Message::CLOSE_CONNEXION:
                D.Out(pdTrace,
                                "Receiving Message from Federate, type 
CloseConnexion.");
                fm->_connection_state = FederationManagement::CONNECTION_FIN;
                // the this->comm can now be used only to sent the 
CLOSE_CONNEXION response
                break ;

So the remaining question is

"In which case RTIA is stopping when
fm->_connection==FederationManagement::CONNECTION_FIN?"

The other interesting place is RTIA/RTIA.cc:

  RTIA::execute() which is endless RTIA loop/


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]