DatagramChannel

package java.nio.channels

extends AbstractSelectableChannelSelectableChannelAbstractInterruptibleChannel

implements ByteChannel, ScatteringByteChannel, GatheringByteChannel, MulticastChannel

Available on java

Static methods

staticopen(param1:ProtocolFamily):DatagramChannel

staticopen():DatagramChannel

Methods

bind(param1:SocketAddress):DatagramChannel

connect(param1:SocketAddress):DatagramChannel

disconnect():DatagramChannel

getLocalAddress():SocketAddress

getOption<T>(param1:SocketOption<T>):T

getRemoteAddress():SocketAddress

isConnected():Bool

join(param1:InetAddress, param2:NetworkInterface):MembershipKey

join(param1:InetAddress, param2:NetworkInterface, param3:InetAddress):MembershipKey

finalread(param1:NativeArray<ByteBuffer>):Int64

read(param1:ByteBuffer):Int

read(param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

receive(param1:ByteBuffer):SocketAddress

send(param1:ByteBuffer, param2:SocketAddress):Int

setOption(param1:SocketOption<Dynamic>, param2:Dynamic):NetworkChannel

setOption<T>(param1:SocketOption<T>, param2:T):DatagramChannel

socket():DatagramSocket

supportedOptions():Set<SocketOption<Dynamic>>

finalwrite(param1:NativeArray<ByteBuffer>):Int64

write(param1:ByteBuffer):Int

write(param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/nio/channels/DatagramChannel.html