added Server PING -> PONG
[PHP-P10.git] / Uplink / Uplink.class.php
index 0dd6df9cca21dd1525ddef145f247009dea6ee24..2dee4da2f213caf4d93bc98d9c50bc7f1ba2f0d6 100644 (file)
@@ -179,6 +179,13 @@ class Uplink {
                                $this->recv_error($from, $arguments);
                                break;
                //P10 Session
+                       case "S":
+                               $this->recv_server($from, $arguments);
+                               break;
+                       case "G":
+                               $this->recv_ping($from, $arguments);
+                               break;
+               //default
                        default:
                                //unknown cmd
                                break;
@@ -240,6 +247,10 @@ class Uplink {
                }
        }
        
+       private function recv_ping($from, $args) {
+               $this->send("Z", $args[0]); //simply PONG
+       }
+       
 }
 
 ?>
\ No newline at end of file