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