Available on lua
staticnew_udp():Udp
@:native("new_udp")new()
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
close():Void
fileno():Int
has_ref():Bool
is_active():Bool
is_closing():Bool
recv_buffer_size(size:Int):Int
ref():Void
send_buffer_size(size:Int):Int
unref():Void