MyDef.h
上传用户:hhs829
上传日期:2022-06-17
资源大小:586k
文件大小:1k
- //
- // MyDef.h
- //
- #if !defined(__MyDef_h__)
- #define __MyDef_h__
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define MPEG1_PACK_SIZE 2324
- #define PACK_INIT_COUNT 100
- #define PACK_TOTAL_COUNT 3500
- #define PACK_MAX_COUNT 5000
- #define BASE_SOCKET_PORT 10025
- typedef struct
- {
- CHAR MPEGData[2324];
- } MPEG1_PACK, *PMPEG1_PACK;
- // Payload types
- #define DATA_REQUEST 0X00 // Request the remote data
- #define DATA_REFUSED 0X01 // Refuse the remote data
- #define DATA_MEDIA 0X02 // Media data
- #define DISCONNECT_REQUEST 0X03 // Request the remote to shut down
- #define SAFE_DELETE(x) { if (x) delete x; x = NULL; }
- #define SAFE_RELEASE(x) { if (x) x->Release(); x = NULL; }
-
- #endif // !defined(__MyDef_h__)