W3cubDocs

/Haxe Java

DatagramSocket

package java.net

implements Closeable

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

Constructor

@:overload @:throws("java.net.SocketException") new (param1:Int, param2:InetAddress)

@:overload @:throws("java.net.SocketException") new ()

private @:overload new (param1:DatagramSocketImpl)

@:overload @:throws("java.net.SocketException") new (param1:SocketAddress)

@:overload @:throws("java.net.SocketException") new (param1:Int)

Methods

@:overload @:throws("java.net.SocketException") bind (param1:SocketAddress):Void

@:overload close ():Void

@:overload @:throws("java.net.SocketException") connect (param1:SocketAddress):Void

@:overload connect (param1:InetAddress, param2:Int):Void

@:overload disconnect ():Void

@:overload @:throws("java.net.SocketException") getBroadcast ():Bool

@:overload getChannel ():DatagramChannel

@:overload getInetAddress ():InetAddress

@:overload getLocalAddress ():InetAddress

@:overload getLocalPort ():Int

@:overload getLocalSocketAddress ():SocketAddress

@:overload getPort ():Int

@:overload @:throws("java.net.SocketException") getReceiveBufferSize ():Int

@:overload getRemoteSocketAddress ():SocketAddress

@:overload @:throws("java.net.SocketException") getReuseAddress ():Bool

@:overload @:throws("java.net.SocketException") getSendBufferSize ():Int

@:overload @:throws("java.net.SocketException") getSoTimeout ():Int

@:overload @:throws("java.net.SocketException") getTrafficClass ():Int

@:overload isBound ():Bool

@:overload isClosed ():Bool

@:overload isConnected ():Bool

@:overload @:throws("java.io.IOException") receive (param1:DatagramPacket):Void

@:overload @:throws("java.io.IOException") send (param1:DatagramPacket):Void

@:overload @:throws("java.net.SocketException") setBroadcast (param1:Bool):Void

@:overload @:throws("java.net.SocketException") setReceiveBufferSize (param1:Int):Void

@:overload @:throws("java.net.SocketException") setReuseAddress (param1:Bool):Void

@:overload @:throws("java.net.SocketException") setSendBufferSize (param1:Int):Void

@:overload @:throws("java.net.SocketException") setSoTimeout (param1:Int):Void

@:overload @:throws("java.net.SocketException") setTrafficClass (param1:Int):Void

Static methods

@:overload @:throws("java.io.IOException") static setDatagramSocketImplFactory (param1:DatagramSocketImplFactory):Void

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