Giter VIP home page Giter VIP logo

socketdemo's Introduction

SocketDemo

具备功能

  1. 服务端和客户端在同一个局域网中进行通讯。
  2. 支持文字消息和表情消息。
  3. 长连接心跳。

使用过程

  1. 同一个WIFI网络下,两台Android手机连接此WIFI。
  2. 一台手机作为服务端,另一台手机作为客户端。
  3. 服务端页面中可以看到IP地址,然后开启服务,等待客户端连接。
  4. 客户端连接服务,在弹窗中输入服务端的Ip地址(Ip地址会根据不同的WIFI网络而变化)。
  5. 任意一端发送消息都可以,另一端收到后会显示。
  6. 可以发送表情,或者表情 + 文字。

版本说明

查看Release下的版本,版本号由低到高,对应功能由少到多。想查看不同版本下的代码直接下载zip包即可,master分支下是当前最新的代码。

Release1.3

  1. 异常状态处理判断。
  2. 增加长连接心跳消息。

Release1.2

  1. 优化表情列表。
  2. 增加消息返回时的ip地址。
  3. 封装基类BaseSocketActivity并使用。

Release1.1

  1. 分离服务端和客户端。
  2. 添加Emoji2使用,增加表情消息。

Release1.0

  1. 同一个页面实现服务端和客户端。
  2. 完成基本的Socket通讯。

socketdemo's People

Contributors

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