W3cubDocs

/Haxe Java

DatagramChannel

package java.nio.channels

extends AbstractSelectableChannelSelectableChannelAbstractInterruptibleChannel

implements ByteChannel, ScatteringByteChannel, GatheringByteChannel, MulticastChannel

@:abstract@:libType@:javaNative@:native("java.nio.channels.DatagramChannel")@:javaCanonical("java.nio.channels","DatagramChannel") Available on java

Methods

@:overload @:throws("java.io.IOException") bind (param1:SocketAddress):DatagramChannel

@:overload @:throws("java.io.IOException") connect (param1:SocketAddress):DatagramChannel

@:overload @:throws("java.io.IOException") disconnect ():DatagramChannel

@:overload @:throws("java.io.IOException") getLocalAddress ():SocketAddress

@:overload @:throws("java.io.IOException") getOption<T> (param1:SocketOption<T>):T

@:overload @:throws("java.io.IOException") getRemoteAddress ():SocketAddress

@:overload isConnected ():Bool

@:overload @:throws("java.io.IOException") join (param1:InetAddress, param2:NetworkInterface):MembershipKey

@:overload @:throws("java.io.IOException") join (param1:InetAddress, param2:NetworkInterface, param3:InetAddress):MembershipKey

@:overload @:throws("java.io.IOException") @:final read (param1:NativeArray<ByteBuffer>):Int64

@:overload @:throws("java.io.IOException") read (param1:ByteBuffer):Int

@:overload @:throws("java.io.IOException") read (param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

@:overload @:throws("java.io.IOException") receive (param1:ByteBuffer):SocketAddress

@:overload @:throws("java.io.IOException") send (param1:ByteBuffer, param2:SocketAddress):Int

@:overload @:throws("java.io.IOException") setOption (param1:SocketOption<Dynamic>, param2:Dynamic):NetworkChannel

@:overload @:throws("java.io.IOException") setOption<T> (param1:SocketOption<T>, param2:T ):DatagramChannel

@:overload socket ():DatagramSocket

@:overload supportedOptions ():Set<SocketOption<Dynamic>>

@:overload @:throws("java.io.IOException") @:final write (param1:NativeArray<ByteBuffer>):Int64

@:overload @:throws("java.io.IOException") write (param1:ByteBuffer):Int

@:overload @:throws("java.io.IOException") write (param1:NativeArray<ByteBuffer>, param2:Int, param3:Int):Int64

Static methods

@:overload @:throws("java.io.IOException") static open (param1:ProtocolFamily):DatagramChannel

@:overload @:throws("java.io.IOException") static open ():DatagramChannel

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