$httpworker = new Worker('text://127.0.0.1:8888'); $httpworker->name = 'HttpWorker'; $httpworker->count = 10; 假设有20个处理任务同时发送到httpworker,收到任务以后,会优先发送给当前空闲的进程处理这个任务,所以初始可以打开10个进程处理任务,等这10个进程处理完了,在处理剩下的10个任务...
$client = new AsyncTcpConnection('ws://xxx.com:80'); $client->onConnect = function($con) { $rid = time(); $lang = "kor"; $con->send('xxx'); }; $client->onMessage = f...