<?php

declare(strict_types=1);

namespace PHPMax\Protocol\Tcp;

class TcpPacketHeader
{
     
    public $ver;
     
    public $cmd;
     
    public $seq;
     
    public $opcode;
     
    public $flags;
     
    public $payloadLen;

    public function __construct(int $ver, int $cmd, int $seq, int $opcode, int $flags = 0, int $payloadLen = 0)
    {
        $this->ver = $ver;
        $this->cmd = $cmd;
        $this->seq = $seq;
        $this->opcode = $opcode;
        $this->flags = $flags;
        $this->payloadLen = $payloadLen;
    }
}

