readMainToThreadPacket() 공개 메소드

예제 #1
0
 private function tick()
 {
     $this->update();
     if (($data = $this->readPacket()) !== null) {
         foreach ($data as $pk) {
             $this->server->pushThreadToMainPacket($pk);
         }
     }
     while (strlen($data = $this->server->readMainToThreadPacket()) > 0) {
         $this->writePacket($data);
     }
 }