Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuuhaoo/OkSocket
An blocking socket client for Android applications.
https://github.com/xuuhaoo/OkSocket
android android-server android-server-json android-socket android-socket-server android-socketio-client android-tcp-server client server server-side socket socket-io socket-server tcp tcp-client tcp-server tcp-socket
Last synced: about 2 months ago
JSON representation
An blocking socket client for Android applications.
- Host: GitHub
- URL: https://github.com/xuuhaoo/OkSocket
- Owner: xuuhaoo
- License: mit
- Created: 2017-10-12T15:37:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-10T09:40:20.000Z (about 5 years ago)
- Last Synced: 2024-11-21T06:24:49.532Z (2 months ago)
- Topics: android, android-server, android-server-json, android-socket, android-socket-server, android-socketio-client, android-tcp-server, client, server, server-side, socket, socket-io, socket-server, tcp, tcp-client, tcp-server, tcp-socket
- Language: Java
- Homepage:
- Size: 5.99 MB
- Stars: 2,579
- Watchers: 45
- Forks: 433
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OkSocket Document
An blocking socket client for Java application or Andorid.| [![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0) | [![Download](https://api.bintray.com/packages/xuuhaoo/maven/OkSocket/images/download.svg)](https://bintray.com/xuuhaoo/maven/OkSocket/_latestVersion) | [![Download](https://api.bintray.com/packages/xuuhaoo/maven/ServerImpl/images/download.svg)](https://bintray.com/xuuhaoo/maven/ServerImpl/_latestVersion) |
| :------: | :------: | :------: |
| `Open source licenses` | `Basic Socket Library` | `Socket Server Plugin Library` |### 中文在线文档
* 为了照顾中国同学的使用,提供了中文的说明文档:
https://www.jianshu.com/p/8ee3ee766265### OkEchoServer Open Source
* Because the echo server already out of service.ofcause online server is not working properly, we decided to open source, hoping let more people who need point-to-point, mobile-to-mobile communication to get more help.[OkEchoServer Source](https://github.com/xuuhaoo/OkEchoServer)
### OkSocket Introduce
OkSocket is a Java library project designed to solve lightweight Socket communication, in order to enable developers to focus more on business logic, rather than TCP communication principles and some protocols. Make Socket communication more beautiful, suitable for large, medium and small Project, the rapid development of stable, maintainable, reliable Socket connection.
### Feature
- SocketClient Tcp IPV4 Connect
- Socket Standard Protocol
- SocketClient Reconnect
- SocketClient Heartbeat
- Socket Sticky Unpacking
- Socket SSL Socket Support
- Client Callback In Thread / Main Thread
- Socket Client Redirect
- SocketServer Support### Instructions
* OkSocket instruction manual [WIKI](https://github.com/xuuhaoo/OkSocket/wiki/What-Is-OkSocket-Is)
* Add the following configuration to the build.gradle file under the project project.
```groovy
allprojects {
repositories {
jcenter()
}
}
```
* Make sure you have already done with put JCenter into repositories blocking in project Gradle files than you need add the following configuration to the module's build.gradle file.```groovy
dependencies {
//Basic Socket client functionality
api 'com.tonystark.android:socket:latest.release'
//If you want to use server functionality, you need to compile the following libraries
api 'com.tonystark.android:socket-server:latest.release'
}
```### Policy
```
Copyright [2018] [徐昊]Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```