Dart的轻量级UDP库。
用法
一个简单的用法示例:
import 'package:udp/udp.dart' ;
main () async {
// creates a UDP instance and binds it to the first available network
// interface on port 65000.
var sender = await UDP . bind ( Endpoint . any (port : Port ( 65000 )));
// send a simple string to a broadcast endpoint on port 65001.
var dataLength = await sender. send ( "Hello World!" .codeUnits,
1