示例#1
0
<?php

/**
 * Created by PhpStorm.
 * User: chengt
 * Date: 14-10-30
 * Time: 上午9:48
 */
require dirname(__FILE__) . '/../global.php';
TenYear::getInstance();
ini_set('memory_limit', '512M');
ini_set('default_socket_timeout', -1);
Com_AdCache::factory()->set_timeout(0);
$process_seq = empty($argv[1]) ? 0 : $argv[1];
# 进程序号
$obj = new Game_SyncPlayer();
$obj->register($process_seq);
echo "register chat receive \r\n";
echo "start receive \r\n";
//开始接收
Com_Queued::receive_all();
示例#2
0
<?php

/**
 * Created by PhpStorm.
 * User: chengt
 * Date: 14-10-30
 * Time: 上午9:48
 */
require dirname(__FILE__) . '/../global.php';
TenYear::getInstance();
ini_set('default_socket_timeout', -1);
Com_AdCache::factory()->set_timeout(0);
$process_seq = empty($argv[1]) ? 0 : $argv[1];
# 进程序号
$obj = new Game_SyncPlayer();
$obj->register_attr($process_seq);
echo "register chat receive \r\n";
echo "start receive \r\n";
//开始接收
Com_Queued::receive_all();