Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /naja/src/php/rpc/

naja
Discussion topic

Back to topic list

CVS update: /naja/src/php/rpc/

Reply

Author pablo_cabrera
Full name Pablo J. Cabrera Munoz
Date 2006-05-28 09:06:45 PDT
Message User: pablo_cabrera
Date: 2006-05-28 09:06:45-0700
Modified:
   naja/src/php/rpc/Naj​aCache.class.php
   naja/src/php/rpc/Naj​aServer.class.php

Log:
 no message

File Changes:

Directory: /naja/src/php/rpc/
=============================

File [changed]: NajaCache.class.php
Url: http://naja.tigris.o​rg/source/browse/naj​a/src/php/rpc/NajaCa​che.class.php?r1=1.1​&r2=1.2
Delta lines: +2 -0
-------------------
--- NajaCache.class.php 2006-05-23 22:06:10-0700 1.1
+++ NajaCache.class.php 2006-05-28 09:06:42-0700 1.2
@@ -1,5 +1,7 @@
 <?php
 
+include_once("NajaC​ache/NajaMessageHold​er.class.php");
+
 /**
  * Class NajaCache
  *

File [changed]: NajaServer.class.php
Url: http://naja.tigris.o​rg/source/browse/naj​a/src/php/rpc/NajaSe​rver.class.php?r1=1.​2&r2=1.3
Delta lines: +19 -3
--------------------
--- NajaServer.class.php 2006-05-27 13:13:09-0700 1.2
+++ NajaServer.class.php 2006-05-28 09:06:42-0700 1.3
@@ -1,5 +1,12 @@
 <?php
 
+include_once("NajaS​erver/NajaMessage.cl​ass.php");
+include_once("NajaS​erver/NajaMethod.cla​ss.php");
+include_once("NajaS​erver/NajaModule.cla​ss.php");
+include_once("NajaS​erver/NajaWhois.clas​s.php");
+include_once("NajaC​ache.class.php");
+include_once(dirnam​e(__FILE__)."/../ser​ializer/PHPSerialize​r.class.php");
+
 /**
  * Class NajaServer
  *
@@ -172,9 +179,13 @@
         $response = $this->createRes​ponse($responseValu​e, $responseEncoding);
         $response->setCl​ientId($clientId);
         $hashCode = $response->getHashCode();
+ if ($message->isCached()) {
         $this->cache-​>storeMessage($resp​onse);
         $this->cache-​>assignClientMessage​($clientId, $hashCode);
         $this->processRe​sponse($response);
+ } else {
+ $this->processRe​sponse($response, true);
+ }
     }
 
     /**
@@ -267,6 +278,11 @@
                 }
                 case ("TYPE") : {
                     $message->setType((string) $attrValue);
+ break;
+ }
+
+ case ("CACHED") : {
+ $message->setCac​hed(((string) $attrValue) == "TRUE");
                     break;
                 }
             }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /naja/src/php/rpc/ pablo_cabrera Pablo J. Cabrera Munoz 2006-05-28 09:06:45 PDT
Messages per page: