-
- All Superinterfaces:
FlowContext,IpContext,IpSocketRef
public interface IpSocketContext extends IpSocketRef, FlowContext
Network socket context that manages asynchronous I/O operations for a non-blocking NIO network channel. AnIpSocketContextis implicitly bound to anIpSocket, providing theIpSocketwith the ability to modify itsFlowControlstate, access its read and write buffers, tobecomea different kind ofIpSocket, and to close the socket.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbecome(IpSocket socket)Rebinds thisIpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks.InputBufferinputBuffer()Returns the buffer into which input data is read by the underlying network socket.IpSettingsipSettings()Returns the configuration parameters that govern the underlying network socket.OutputBuffer<?>outputBuffer()Returns the buffer from which output data is written by the underlying network socket.-
Methods inherited from interface swim.io.FlowContext
flowControl, flowControl, flowControl
-
Methods inherited from interface swim.io.IpContext
cipherSuite, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol
-
Methods inherited from interface swim.io.IpSocketRef
close
-
-
-
-
Method Detail
-
ipSettings
IpSettings ipSettings()
Returns the configuration parameters that govern the underlying network socket.
-
inputBuffer
InputBuffer inputBuffer()
Returns the buffer into which input data is read by the underlying network socket. The boundIpSocketreads from this buffer in response todoReadcallbacks.
-
outputBuffer
OutputBuffer<?> outputBuffer()
Returns the buffer from which output data is written by the underlying network socket. The boundIpSocketwrites to this buffer in repsonse todoWritecallbacks.
-
become
void become(IpSocket socket)
Rebinds thisIpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks.
-
-