Git Product home page Git Product logo

im-system's Introduction

Server-整体结构

架构图

Feature

  • 用户上线广播
  • 用户消息广播
  • 私聊
  • 在线用户查询
  • 修改当前用户名
  • 超时强踢
  • 简易的Client

Reference

Aceld: 8小时转职Golang工程师

Note:

  • Read方法返回EOF错误

    表示本端感知到对端已经正常关闭(调用Close)conn连接(本端已接收到对端发送的FIN)。此后如果本端不调用Close方法,则连接处于非完全关闭状态(CLOSE_WAIT)。即文件描述符发生泄漏。

  • Read方法返回0

    1. 情况一:本端已关闭连接对端的conn(A),此时本端若Read刚才关闭的conn(A),则返回0,error:use of closed network connection
    2. 情况二:对端主机强制关闭conn(如CTRL+C),此时本端Read该conn时返回0,error:An existing connection was forcibly closed by the remote host

im-system's People

Contributors

haovvu avatar

Stargazers

 avatar  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.