Remove core-comm dependency through CounterManager/timex in core/oam subsystem. Basic...
[anna.git] / example / timex / ArithmeticHTTPServer / Context.cpp
index 21e6eb1..3e45a64 100644 (file)
@@ -49,13 +49,13 @@ using namespace anna;
 using namespace test;
 
 http4comm::Context::Context (timex::Engine& timeController, const Millisecond& timeout) : 
-   timex::Context<Integer64> ("http4comm", timeController, timeout) 
+   timex::Context<S64> ("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 <http4comm::Transaction*> (timex::Context <Integer64>::open (id, 0));
+   http4comm::Transaction* transaction = static_cast <http4comm::Transaction*> (timex::Context <S64>::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);
 }