W3cubDocs

/Haxe Java

Socket

package java.net

implements Closeable

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

Constructor

@:overload @:throws("java.io.IOException") new (param1:InetAddress, param2:Int, param3:Bool)

@:overload new ()

@:overload new (param1:Proxy)

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

@:overload @:throws("java.io.IOException") @:throws("java.net.UnknownHostException") new (param1:String, param2:Int)

@:overload @:throws("java.io.IOException") new (param1:InetAddress, param2:Int)

@:overload @:throws("java.io.IOException") new (param1:String, param2:Int, param3:InetAddress, param4:Int)

@:overload @:throws("java.io.IOException") new (param1:InetAddress, param2:Int, param3:InetAddress, param4:Int)

@:overload @:throws("java.io.IOException") new (param1:String, param2:Int, param3:Bool)

Deprecated:

Methods

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

@:overload @:throws("java.io.IOException") close ():Void

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

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

@:overload getChannel ():SocketChannel

@:overload getInetAddress ():InetAddress

@:overload @:throws("java.io.IOException") getInputStream ():InputStream

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

@:overload getLocalAddress ():InetAddress

@:overload getLocalPort ():Int

@:overload getLocalSocketAddress ():SocketAddress

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

@:overload @:throws("java.io.IOException") getOutputStream ():OutputStream

@: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") getSoLinger ():Int

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

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

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

@:overload isBound ():Bool

@:overload isClosed ():Bool

@:overload isConnected ():Bool

@:overload isInputShutdown ():Bool

@:overload isOutputShutdown ():Bool

@:overload @:throws("java.io.IOException") sendUrgentData (param1:Int):Void

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

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

@:overload setPerformancePreferences (param1:Int, param2:Int, param3:Int):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") setSoLinger (param1:Bool, param2:Int):Void

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

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

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

@:overload @:throws("java.io.IOException") shutdownInput ():Void

@:overload @:throws("java.io.IOException") shutdownOutput ():Void

@:overload toString ():String

Static methods

@:overload @:throws("java.io.IOException") static setSocketImplFactory (param1:SocketImplFactory):Void

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