-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class SocketChannelSocket extends Socket
Bypass Socket.
Wraps NIO SocketChannel and does not use SocketImpl. Implements all socket methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSocketChannelSocket.Outputpublic final classSocketChannelSocket.Input
-
Field Summary
Fields Modifier and Type Field Description private final SocketChannelchprivate final SocketImplimpl
-
Constructor Summary
Constructors Constructor Description SocketChannelSocket()SocketChannelSocket(SocketChannel ch)
-
Method Summary
-
Methods inherited from class org.openziti.net.internal.SocketChannelSocket
createImpl, getImpl, getSoTimeout, postAccept, setBound, setConnected, setCreated, setImpl, setPerformancePreferences, setSoTimeout, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SocketChannelSocket
SocketChannelSocket()
-
SocketChannelSocket
SocketChannelSocket(SocketChannel ch)
-
-
Method Detail
-
getCh
final SocketChannel getCh()
-
bind
Unit bind(SocketAddress bindpoint)
-
connect
Unit connect(SocketAddress endpoint)
-
connect
Unit connect(SocketAddress endpoint, Integer timeout)
-
getInetAddress
InetAddress getInetAddress()
-
getLocalAddress
InetAddress getLocalAddress()
-
getLocalPort
Integer getLocalPort()
-
getRemoteSocketAddress
InetSocketAddress getRemoteSocketAddress()
-
getLocalSocketAddress
InetSocketAddress getLocalSocketAddress()
-
getChannel
SocketChannel getChannel()
-
getInputStream
InputStream getInputStream()
-
getOutputStream
OutputStream getOutputStream()
-
setTcpNoDelay
Unit setTcpNoDelay(Boolean on)
-
getTcpNoDelay
Boolean getTcpNoDelay()
-
setSoLinger
Unit setSoLinger(Boolean on, Integer linger)
-
getSoLinger
Integer getSoLinger()
-
sendUrgentData
Unit sendUrgentData(Integer data)
-
setOOBInline
Unit setOOBInline(Boolean on)
-
getOOBInline
Boolean getOOBInline()
-
setSendBufferSize
Unit setSendBufferSize(Integer size)
-
getSendBufferSize
Integer getSendBufferSize()
-
setReceiveBufferSize
Unit setReceiveBufferSize(Integer size)
-
getReceiveBufferSize
Integer getReceiveBufferSize()
-
setKeepAlive
Unit setKeepAlive(Boolean on)
-
getKeepAlive
Boolean getKeepAlive()
-
setTrafficClass
Unit setTrafficClass(Integer tc)
-
getTrafficClass
Integer getTrafficClass()
-
setReuseAddress
Unit setReuseAddress(Boolean on)
-
getReuseAddress
Boolean getReuseAddress()
-
shutdownInput
Unit shutdownInput()
-
shutdownOutput
Unit shutdownOutput()
-
isConnected
Boolean isConnected()
-
isInputShutdown
Boolean isInputShutdown()
-
isOutputShutdown
Boolean isOutputShutdown()
-
getOption
<T extends Any> T getOption(SocketOption<T> name)
-
supportedOptions
Set<SocketOption<?>> supportedOptions()
-
-
-
-