Udp

package lua.lib.luv.net

extends Handle

Available on lua

Static methods

staticnew_udp():Udp

Constructor

new()

Methods

bind(host:String, port:Int):Int

getsockname():String

open(fd:Int):Int

recv_start(cb:(String, Bool) ‑> Void):Int

recv_stop():Int

send(data:String, host:String, port:Int, cb:Bool ‑> Void):Int

set_broadcast(on:Bool):Int

set_membership(multicast_addr:String, interface_addr:String, membership:String):Int

set_multicast_interface(interface_addr:String):Int

set_multicast_loop(on:Bool):Int

set_multicast_ttl(ttl:Int):Int

set_ttl(ttl:Int):Int

try_send(data:String, host:String, port:Int):Int

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/lib/luv/net/Udp.html