walkor 12 år sedan
förälder
incheckning
ffe8e6c842

+ 1 - 1
applications/Tests/game.php → applications/Game/Tests/game.php

@@ -2,7 +2,7 @@
 ini_set('display_errors', 'on');
 error_reporting(E_ALL);
 define('WORKERMAN_ROOT_DIR', __DIR__.'/../../');
-include '../Game/GameBuffer.php';
+include '../GameBuffer.php';
 
 $sock = stream_socket_client("tcp://127.0.0.1:8282");
 if(!$sock)exit("can not create sock\n");

+ 0 - 18
applications/Tests/testBufferWorker.php

@@ -1,18 +0,0 @@
-<?php 
-error_reporting(E_ALL);
-ini_set('display_errors', 'on');
-include '../../man/Protocols/Buffer.php';
-
-$sock = stream_socket_client("tcp://127.0.0.1:20305");
-if(!$sock)exit("can not create sock\n");
-
-$code = 0;
-while(1)
-{
-    $buf = new \Man\Protocols\Buffer();
-    $buf->body = 'HELLO YAOYAO';
-    $buf->header['code'] = $code++;
-    fwrite($sock, $buf->getBuffer());
-    $ret = fread($sock, 10240);
-    var_export(\Man\Protocols\Buffer::decode($ret));
-}

+ 0 - 8
man/Protocols/interfaces.php

@@ -1,8 +0,0 @@
-<?php
-
-interface IProtocol
-{
-    public static function input($data);
-    public static function decode($data);
-    public static function encode($data);
-}