https://github.com/hkspirt/kcp-java
基于skywind3000/kcp的Java版本
https://github.com/hkspirt/kcp-java
Last synced: 2 months ago
JSON representation
基于skywind3000/kcp的Java版本
- Host: GitHub
- URL: https://github.com/hkspirt/kcp-java
- Owner: hkspirt
- Created: 2016-08-24T10:08:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T03:15:01.000Z (almost 9 years ago)
- Last Synced: 2023-11-07T18:52:09.361Z (over 2 years ago)
- Language: Java
- Size: 9.77 KB
- Stars: 113
- Watchers: 16
- Forks: 46
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-java - KCP Java
README
# kcp-java
基于skywind3000/kcp的Java版本
- [kcp](https://github.com/skywind3000/kcp)
需实现output方法
```java
KCP kcp = new KCP(10) {
@Override
protected void output(byte[] bytes, int size) {
IoBuffer buff = IoBuffer.allocate(size);
buff.put(bytes, 0, size);
buff.rewind();
session.write(buff);
}
};
```