X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Ftimex%2FArithmeticHTTPServer%2FContext.cpp;h=e6a521f2acf285e70301b9fc3941a4fa7ee3afe1;hb=c68d53c4623b63ee20014a7eae0b9759a490c90e;hp=21e6eb10883ebf9c5b41fe4942f083a449fb19d5;hpb=4e12ac57e93c052f716a6305ad8fc099c45899d1;p=anna.git diff --git a/example/timex/ArithmeticHTTPServer/Context.cpp b/example/timex/ArithmeticHTTPServer/Context.cpp index 21e6eb1..e6a521f 100644 --- a/example/timex/ArithmeticHTTPServer/Context.cpp +++ b/example/timex/ArithmeticHTTPServer/Context.cpp @@ -1,8 +1,8 @@ -// ANNA - Anna is Not 'N' Anymore +// ANNA - Anna is Not Nothingness Anymore // // (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo // -// https://bitbucket.org/testillano/anna +// http://redmine.teslayout.com/projects/anna-suite // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions @@ -14,7 +14,7 @@ // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. -// * Neither the name of Google Inc. nor the names of its +// * Neither the name of the copyright holder nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // @@ -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); }