Giter Site home page Giter Site logo

tinyqq's Introduction

周末闲来无事,想着深入了解一下Go的socket编程,就试着写了个聊天软件,为了缩短战线,没有写UI,只是在终端中进行交互,所以如果一个用户和多个用户聊天的话,要打开多个终端进行……

目前缺陷很多:

  1. 没实现长连接的超时机制,所以如若一个用长时间占用资源而不聊天,服务端没办法踢下线
  2. 由于没有存储用户信息,没有办法存储聊天记录
  3. 因为没有UI,更谈不上用户体验
  4. 没有对登录的用户进行流控处理,进入的人太多,server端必定crash掉……
  5. TCP连接没有走加密通道

此处省略一万字……

总之,缺陷很多,但是无妨,以后慢慢改进……

感兴趣的小伙伴,不妨加个star,能更方便的看到我得每次提交,以及增加的一些新东西。

效果:

效果图

tinyqq's People

Contributors

foolishway avatar

Stargazers

坂本 avatar

Watchers

 avatar

tinyqq's Issues

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.