MyCommunicator () {;}
private:
- void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException);
+ void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false);
};
class Blocker : public comm::Application {
MyCommunicator a_communicator;
comm::ServerSocket* a_blockerSocket;
- void initialize () throw (RuntimeException);
- void run () throw (RuntimeException);
+ void initialize () noexcept(false);
+ void run () noexcept(false);
};
using namespace std;
// Inicializa el servidor de sockets.
//-----------------------------------------------------------------------------------------
void Blocker::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
// Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage
//-----------------------------------------------------------------------------------------
void Blocker::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
// Cuando recibe el primer mensaje deja al sistema bloqueado esperando una tecla.
//-----------------------------------------------------------------------------------------
void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message)
- throw (RuntimeException)
+ noexcept(false)
{
LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));
static bool blocking = true;