X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Ftimex%2FArithmeticHTTPServer%2FContext.cpp;h=f610b00eb997d561e105e8986fc62e7725d82c60;hb=10acee039e75b859b11fd809ce22fb2aecce47e2;hp=21e6eb10883ebf9c5b41fe4942f083a449fb19d5;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/example/timex/ArithmeticHTTPServer/Context.cpp b/example/timex/ArithmeticHTTPServer/Context.cpp index 21e6eb1..f610b00 100644 --- a/example/timex/ArithmeticHTTPServer/Context.cpp +++ b/example/timex/ArithmeticHTTPServer/Context.cpp @@ -1,4 +1,4 @@ -// ANNA - Anna is Not 'N' Anymore +// ANNA - Anna is Not Nothingness Anymore // // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo // @@ -49,13 +49,13 @@ using namespace anna; using namespace test; http4comm::Context::Context (timex::Engine& timeController, const Millisecond& timeout) : - timex::Context ("http4comm", timeController, timeout) + timex::Context ("http4comm", timeController, timeout) {;} -void http4comm::Context::create (const Integer64 id, comm::ClientSocket& clientSocket) +void http4comm::Context::create (const S64 id, comm::ClientSocket& clientSocket) throw (RuntimeException) { - http4comm::Transaction* transaction = static_cast (timex::Context ::open (id, 0)); + http4comm::Transaction* transaction = static_cast (timex::Context ::open (id, 0)); transaction->setClientSocket (&clientSocket); @@ -96,7 +96,7 @@ void http4comm::Context::releaseTransaction (timex::Transaction* tt) /** * Interpreta el identificador de la transación como cadena */ -string http4comm::Context::identifierAsString (const Integer64& id) const +string http4comm::Context::identifierAsString (const S64& id) const throw () { return functions::asHexString (id); @@ -105,8 +105,8 @@ string http4comm::Context::identifierAsString (const Integer64& id) const /* * Interpreta el contexto de la transación para obtener su Id de aplicación. */ -const Integer64& http4comm::Context::contextAsIdentifier (const void* cc) const +const S64& http4comm::Context::contextAsIdentifier (const void* cc) const throw () { - return *((Integer64*) cc); + return *((S64*) cc); }