Giter Site home page Giter Site logo

nettychat's Introduction

NettyChat

基于Netty 4.1,使用Maven构建项目;自己动手再实现一遍: 掘金闪电侠《Netty 入门与实战:仿写微信 IM 即时通讯系统

Update Log

  • 2020-3-13 新建项目,达成基于netty的C/S双向通信

  • 2020-3-15达成 序列化;协议设计、解析、编码;登录请求,登录响应;

    • server
    image-20200315174914435
    • client
    image-20200315174847651
  • 2020-3-30 新增登录之后,对于登录状态的存储,能够判断用户是否登录,如果登录,用户可以发送消息请求到服务端,服务端接收用户请求并通过消息响应包返回收到的消息;同时重构了handler,在pipline上将不同的包交给不同的Handler处理;尤其是统一复用接收时候的decode和encode;

    • server:

      image-20200330152501128
    • client:

      image-20200330152531541

目前存在bug:由于把登录的方式放在channel active的时候调用,scanner调用后关闭System in导致无法在其他地方使用Scanner读取命令行输入,目前先通过代码自动登录,后期迁移至其他地方登录

  • 优惠码

    image-20200313174752116

nettychat's People

Contributors

sirhao avatar

Stargazers

 avatar

Watchers

 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.