W3cubDocs

/Haxe Java

ServerSocket

package java.net

implements Closeable

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

Constructor

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

@:overload @:throws("java.io.IOException") new ()

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

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

Methods

@:overload @:throws("java.io.IOException") accept ():Socket

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

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

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

@:overload getChannel ():ServerSocketChannel

@:overload getInetAddress ():InetAddress

@:overload getLocalPort ():Int

@:overload getLocalSocketAddress ():SocketAddress

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

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

@:overload @:throws("java.io.IOException") getSoTimeout ():Int

@:overload isBound ():Bool

@:overload isClosed ():Bool

@: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") setSoTimeout (param1:Int):Void

@:overload toString ():String

Static methods

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

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