Current location - Recipe Complete Network - Catering franchise - Ask for help, define and send the socket header package.
Ask for help, define and send the socket header package.
A packet can be defined as follows: the length of the packet (number of bytes): dword-the data of the header. Its length is equal to: packet length -SizeOf(dword). -Packet data This is the simplest, that is to say, the packet header is fixed in length, so you can grab the packet header first when grabbing the data; Then grab the following packet data according to the packet header information. Look!