public static function calculatePayloadOffset($negotiate_flags)
    {
        $offset = 0;

        $offset += strlen(static::SIGNATURE); // 8-byte signature
        $offset += 4; // Message-type indicator
        $offset += 4; // 32-bit Negotation flags

        $offset += 8; // 64-bit domain name field designator
        $offset += 8; // 64-bit client hostname field designator

        return $offset;
    }