raklib\protocol\OPEN_CONNECTION_REQUEST_2::encode PHP Метод

encode() публичный Метод

public encode ( )
    public function encode()
    {
        parent::encode();
        $this->put(RakLib::MAGIC);
        $this->putAddress($this->serverAddress, $this->serverPort, 4);
        $this->putShort($this->mtuSize);
        $this->putLong($this->clientID);
    }
OPEN_CONNECTION_REQUEST_2