W3cubDocs

/Haxe Sys

UdpSocket

package sys.net

extends Socket

@:coreApi Available on cpp, hl, java, lua, macro, neko, php, python

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.

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