GithubHelp home page GithubHelp logo

tocol's Introduction

tocol

项目说明

  • 该项目名称为tocol意为协议的意思,本人认为网络编程离不开协议。
  • 该项目主要提供复用TCP连接的RPC调用,目前实现的协议有java自带的和hessian。
  • 框架的协议是可扩展的,服务也是可扩展的。

关于Server

  • 目前只是netty
  • 服务端会管理TCP连接
  • 服务端可扩展的,实现Server接口即可
  • 服务端支持多端口启动服务

关于Client

  • 与Server类似
  • 调用简单只需要加接口以及IP:端口即可
  • 客户端支持连接多个不同的服务端调用服务
  • 客户端可设置TCP连接数,该连接数一经设置会一直保存这个连接数
  • TCP连接使用策略是基于TCP连接最近使用时间来判断的

关于Protocol

  • 目前实现的协议有java自带的二进制协议和hessian协议
  • 协议是可扩展的

关于传输协议

  • 该框架使用自定义协议,头四个字节表示数总长度,第五个字节表示序列化协议长度,后面的字节表示序列化协议以及Object序列化对象

关于测试

  • 项目里面提供了相关的测试方法

tocol's People

Contributors

timershu avatar

Stargazers

 avatar  avatar qbmiller avatar Michael.谢 avatar WangHao avatar  avatar 春天 avatar  avatar 钟权 avatar  avatar Ryan avatar dengqx avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.