Skip to content

aabluedragon/node-kcp

 
 

Repository files navigation

node-kcp-x

Build Status

KCP Protocol for Node.js

修改自 node-kcp,使用 node-addon-api 重写

HowTo

Build:

npm install -g node-gyp

node-gyp configure

git clone https://github.com/bruce48x/node-kcp

cd node-kcp

git submodule update --init

node-gyp build

运行示例1

npm run install
node test/udpserver.js
node test/udpclient.js

运行示例2

# 运行服务端
node examples/server.js
# 运行客户端
node examples/client.js

运行示例3

使用 stream 模式

# 运行服务端
node examples/stream-server.js
# 运行客户端
node examples/stream-client.js

About Pomelo and Pomelo-kcp

If you want to use node-kcp in pomelo server, you need pomelo-kcp

About

KCP Protocol for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 63.1%
  • C++ 28.7%
  • JavaScript 6.8%
  • Python 1.4%