W3cubDocs

/Haxe Java

DatagramPacket

package java.net

@:final@:libType@:javaNative@:native("java.net.DatagramPacket")@:javaCanonical("java.net","DatagramPacket") Available on java

Constructor

@:overload @:throws("java.net.SocketException") new (param1:NativeArray<Int8>, param2:Int, param3:SocketAddress)

@:overload new (param1:NativeArray<Int8>, param2:Int, param3:Int)

@:overload new (param1:NativeArray<Int8>, param2:Int)

@:overload new (param1:NativeArray<Int8>, param2:Int, param3:Int, param4:InetAddress, param5:Int)

@:overload @:throws("java.net.SocketException") new (param1:NativeArray<Int8>, param2:Int, param3:Int, param4:SocketAddress)

@:overload new (param1:NativeArray<Int8>, param2:Int, param3:InetAddress, param4:Int)

Methods

@:overload getAddress ():InetAddress

@:overload getData ():NativeArray<Int8>

@:overload getLength ():Int

@:overload getOffset ():Int

@:overload getPort ():Int

@:overload getSocketAddress ():SocketAddress

@:overload setAddress (param1:InetAddress):Void

@:overload setData (param1:NativeArray<Int8>):Void

@:overload setData (param1:NativeArray<Int8>, param2:Int, param3:Int):Void

@:overload setLength (param1:Int):Void

@:overload setPort (param1:Int):Void

@:overload setSocketAddress (param1:SocketAddress):Void

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