国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

tcp單獨給用戶發(fā)送數(shù)據(jù),數(shù)據(jù)發(fā)現(xiàn)累積問題,

胡顯達

例如第一次發(fā)送1,第二次發(fā)送2 ,第二次客戶端接受的就是 12

public  function sendMessageByUid($clientId, $message)
{
    global $worker;
    if(isset($worker->uidConnections))
    {
        Log::info('發(fā)送成功');

        $connection = $worker->uidConnections;
        Log::info($message);
        $connection->send($message,true);

    }else{

        Log::info('發(fā)送失敗');

    }

}
2548 1 0
1個回答

phpcreeper

? $connection->send($message,true);這屬于TCP粘包,如何解決粘包? http://doc.workerman.net/protocols/how-protocols.html

  • 暫無評論
年代過于久遠,無法發(fā)表回答
??