Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protocol

research and implementation of socket-based custom protocol.

Format:

(stale)
description:
header: 0xAA
length: option (1 byte) + cmd (1 byte) + data (N byte)
optoin: high 4-digit is version number, and low 4-digit is reseved
cmd : 0x01
data : data[0] = 0x01 or 0x02
0x01: heartbeat package
0x02: report
crc : crc value of length[2], option, cmd and data
tail : 0xFF

Build:

run the following command in the root directory:

make

clean up please use:

make clean

Note:

you must be set the LD_LIBRARY_PATH use export LD_LIBRARY_PATH=(path)/(to)/(lib)

About

基于Socket的自定义协议的研究与实现

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages