求救!一个超难的问题!!!
我要发送一个协议数据包,数据包的格式是(SMPP Bind_Transmitter_Resp)
前4个字节为command_length,接下来的4个字节为command_id,再下来4个字节为
command_status,再4个字节是sequence_number,我想形成一个包,通过socket发出去,
我像这样写
char [] bind_Transmitter_Resp = {
0x00,0x00,0x00,0x16, // command_length , 16
....
};
好像不对,哪位能帮我一下,给我写个例子吗?感激不尽!!!!!
比如command_length:16,command_id:0x80000002,command_status:0,sequence_number:1