⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rvtpkt.h

📁 h.248协议源码
💻 H
字号:
/******************************************************************************
Filename:    rvtpkt.h
Description: TPKT header for delimiting TCP packets. see RFC 1006.
*******************************************************************************
                Copyright (c) 2000 RADVision Inc.
*******************************************************************************
NOTICE:
This document contains information that is proprietary to RADVision Inc.
No part of this publication may be reproduced in any form whatsoever without
written prior approval by RADVision Inc.

RADVision Inc. reserves the right to revise this publication and make changes
without obligation to notify any person of such revisions or changes.
******************************************************************************/

#ifndef RV_TPKT_H
#define RV_TPKT_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stddef.h>

typedef struct
{
	unsigned char b[4];
} RvTpkt;

#define RV_TPKT_VERSION 3
#define RV_TPKT_MAXLENGTH (0xFFFF - sizeof(RvTpkt))

RvTpkt *rvTpktConstruct(RvTpkt *x, size_t length);
#define rvTpktDestruct(x)
#define rvTpktGetVersion(x) ((x)->b[0])
#define rvTpktCheckVersion(x) (rvTpktGetVersion(x) == RV_TPKT_VERSION)
#define rvTpktGetLength(x) (((x)->b[2] << 8) + (x)->b[3] - sizeof(RvTpkt))

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -