Home > Back-end >  Who can give me a C builder 2010 TCP packet data transmission crc32 check instance
Who can give me a C builder 2010 TCP packet data transmission crc32 check instance

Time:10-10

Who can give me a c + + builder 2010 TCP packet data transmission crc32 instance check?
This is the structure of baotou:
# pragma pack (push, 1)
Typedef struct tagLDMSG {
WORD wCommand.//command
DWORD dwSize;//data length
} LDMSG;
# pragma pack (pop)

This was to extend the communication protocol format
# pragma pack (push, 1)
Struct LDMSG_EXT
{
LDMSG header;
DWORD crc32;//buff CRC check
DWORD checkSum.//wCommand ~ crc32 checksum
Char bson [1].//bson object, packet content placeholder
}
# pragma pack (pop)
Expansion pack bson structure
{
Type: the string//the data content
Data: bson//the data content, optional
}

This is how to pack and how to use the CRC check? Kneeling strives for example, some 610291240 @qq.com, please send first thank everybody prawn,
  • Related