- 该项目名称为tocol意为协议的意思,本人认为网络编程离不开协议。
- 该项目主要提供复用TCP连接的RPC调用,目前实现的协议有java自带的和hessian。
- 框架的协议是可扩展的,服务也是可扩展的。
- 目前只是netty
- 服务端会管理TCP连接
- 服务端可扩展的,实现Server接口即可
- 服务端支持多端口启动服务
- 与Server类似
- 调用简单只需要加接口以及IP:端口即可
- 客户端支持连接多个不同的服务端调用服务
- 客户端可设置TCP连接数,该连接数一经设置会一直保存这个连接数
- TCP连接使用策略是基于TCP连接最近使用时间来判断的
- 目前实现的协议有java自带的二进制协议和hessian协议
- 协议是可扩展的
- 该框架使用自定义协议,头四个字节表示数总长度,第五个字节表示序列化协议长度,后面的字节表示序列化协议以及Object序列化对象
- 项目里面提供了相关的测试方法