Git Product home page Git Product logo

pushserver's Introduction

###基础通信协议 简单的基础的自定义通信协议
+-------+----+-----+----------------+
bytes | 4 | 1 | 3 | ... | +------+-----+-----+----------------+
packet | 长度 | 编码 | 保留 | 包体 | +------+-----+-----+----------------+

###web分支

为区分报文类型在包体加上4字节因业务不同,故放包体中

			包体       
		+--------+----------------+     
bytes   |    4   |   ...          |
		+--------+----------------+   
packet  | 报文类型|    报文内容     |
		+--------+----------------+ 
  • 实现简单的推送(android)
  • 先用H2内存数据库做为开发环境
  • 心跳处理

android客户端详见 android客户端

###简单说明

  • 开发环境使用嵌入式手动启动jetty,位于src/test/ startServer.java中
  • cn.flaty包下的PushAdmin包与NettyPush包分别对应着连接管理与消息管理后台,以为后面分离做好准备;
  • 由于管理与连接暂时没分离,故连接的启动使用spring监听器启动

pushserver's People

Contributors

flatychen avatar

Watchers

 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.