📄 mylistsocketblock.h
字号:
#include "stdafx.h"
#ifndef _MY_LIST_SOCKET_BLOCK_H
#define _MY_LIST_SOCKET_BLOCK_H
#pragma warning(disable: 4786)
#include <list>
using namespace std ;
#define BLOCK_ERROR_LOSSBLOCK 0 //数据包丢失
#define BLOCK_ERROR_LIST 1 // 数据包顺序错误
typedef struct _tag_BlockListInfo{
int nFlag;
DWORD dwBlockIndex;
DWORD dwPreBlockIndex;
long lIndexOff;
long lTimeOff;
}BlockListInfo,*pBlockListInfo; //数据包
/**************Redefine your BlockNamee****************/
#define ALIASBLOCKINDEX dwBlockIndex
typedef DataBlock SocketBlock,*pSocketBlock;
typedef list<pSocketBlock> ListSocketBlock,*pListSocketBlock;
extern void AddBlockInBlockList(pListSocketBlock pBlockList,pSocketBlock pBlock);
extern void FreeBlockList(pListSocketBlock pBlockList);
extern bool PopHeaderBlock(pListSocketBlock pBlockList,pSocketBlock pBlock_,
int nValidSize);
extern void ShowSocketList(pListSocketBlock pBlockList);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -