W3cubDocs

/Haxe

Udp

package lua.lib.luv.net

extends Handle

Available on lua

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

Static methods

static new_udp ():Udp

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