node rudp
1.0.0
Node.js 的可靠 UDP 实现。
对于点对点应用程序,您可以编写如下脚本:
var rudp = require ( 'rudp' ) ;
var dgram = require ( 'dgram' ) ;
var socket = dgram . createSocket ( 'udp4' ) ;
socket . bind ( localPort ) ;
var client = new rudp . Client ( socket , remoteAddress , remotePort ) ;
// And do whatever you want here