- All Superinterfaces:
FlowContext,IpContext,IpSocketRef
Network socket context that manages asynchronous I/O operations for a
non-blocking NIO network channel. An
IpSocketContext is implicitly
bound to an IpSocket, providing the IpSocket with the
ability to modify its FlowControl state, access its read and write
buffers, to become a different kind of
IpSocket, and to close the socket.-
Method Summary
Modifier and TypeMethodDescriptionvoidRebinds thisIpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks.Returns the buffer into which input data is read by the underlying network socket.Returns the configuration parameters that govern the underlying network socket.OutputBuffer<?>Returns the buffer from which output data is written by the underlying network socket.Methods inherited from interface swim.io.FlowContext
flowControl, flowControl, flowControlMethods inherited from interface swim.io.IpContext
cipherSuite, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, remoteAddress, remoteCertificates, remotePrincipal, securityProtocolMethods inherited from interface swim.io.IpSocketRef
close
-
Method Details
-
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
Rebinds thisIpSocketContextto a newsocketimplementation, thereby changing theIpSockethandler that receives network I/O callbacks.
-