W3cubDocs

/Haxe Java

SocketChannel

package java.nio.channels

extends AbstractSelectableChannelSelectableChannelAbstractInterruptibleChannel

implements ByteChannel, ScatteringByteChannel, GatheringByteChannel, NetworkChannel

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

Methods

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

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

@:overload @:throws("java.io.IOException") finishConnect ():Bool

@: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 isConnectionPending ():Bool

@: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") setOption (param1:SocketOption<Dynamic>, param2:Dynamic):NetworkChannel

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

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

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

@:overload socket ():Socket

@: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:SocketAddress):SocketChannel

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

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