Skip to content

最简单的tcpserver,主要解决tcp的粘包、分包的问题

Notifications You must be signed in to change notification settings

wangfeng2500/common_protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

common_protocol

简介:最简单的tcpserver,主要解决tcp的粘包、分包的问题,定义了一个通用的包结构,包头+包体,包体是pb协议 本代码编译和安装时都使用了pb库,运行时需要pb的so库,所以需要首先指明路径: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/protobuf2.4.1/lib 然后在运行才可以

About

最简单的tcpserver,主要解决tcp的粘包、分包的问题

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published