Giter Site home page Giter Site logo

smsocket's Introduction

SMSocket

轻量级IM网络框架,基于BSD Socket,适用于自定义IM网络协议开发

IM业务一般分为网络层 网络和业务交合的协议层 和业务层,协议层各个公司自己定义,业务层每个人有自己写法,建议MVVM 网络层没有使用著名的GCGSyncsocket, 1此库强大但臃肿,大部分功能我们用不到 2自定义协议程度较高,需要与之适配的网络层写法 3三方网络库有问题不好定位 因此需要自己写网络层

比如收到一段字节流,可以判断前n个字节判断消息类型,再n个字节判断消息body长度,然后读取body长度的消息体去解析,如Read_HeaderType

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.