Giter Site home page Giter Site logo

quintushorace / rokidsocketdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhuohengfeng/rokidsocketdemo

0.0 1.0 0.0 193 KB

一个socket基础框架,支持通过UDP组播方式搜索局域网内设备,之后通过TCP建立一对多的TCP连接。支持字符串和小图片的发送和接收。

Java 100.00%

rokidsocketdemo's Introduction

RokidSocketDemo

目标

一个socket基础框架,支持通过UDP组播方式搜索局域网内设备,之后通过TCP建立一对多的TCP连接。支持字符串和小图片的发送和接收。

对外接口

  1. 启动socket服务
  2. 关闭socket服务
  3. 发送消息 a) 客户端->服务端 b) 服务端->某个客户端 c)服务端广播给所有客户端
  4. 通过回调方式通知收到的消息

使用

implementation 'com.rokid:glass.socket:1.0.0'

TODO:

需要加入鉴权机制,只有经过授权的设备才能连接服务端

rokidsocketdemo's People

Watchers

James Cloos 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.