Static methods

staticdisconnect(this:Udp):Result<NoData>

Removes the peer address assigned to the given socket.

staticgetPeerName(this:Udp):Result<SockAddr>

Retrieves the peer address assigned to the given socket.

staticsend(this:Udp, data:Array<Buffer>, callback:(result:Result<NoData>) ‑> Void):Void

Like eval.luv.UDP.send, but the remote address used is the peer address assigned to the socket.

statictrySend(this:Udp, data:Array<Buffer>):Result<NoData>

Like eval.luv.UDP.trySend, but the remote address used is the peer address assigned to the socket.