UdpSocket

package sys.net

extends Socket

Available on php, neko, cpp, macro, java, lua, python, hl

A UDP socket class

Constructor

new()

Methods

readFrom(buf:Bytes, pos:Int, len:Int, addr:Address):Int

Reads data from any incoming address and store the receiver address into the address parameter.

sendTo(buf:Bytes, pos:Int, len:Int, addr:Address):Int

Sends data to the specified target host/port address.

setBroadcast(b:Bool):Void

Allows the socket to send to broadcast addresses.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/sys/net/UdpSocket.html