public class SniffySocketChannel extends SniffySocketChannelAdapter implements SniffyNetworkConnection
DEFAULT_TCP_WINDOW_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
SniffySocketChannel(SelectorProvider provider,
SocketChannel delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConnectionAllowed() |
void |
checkConnectionAllowed(InetSocketAddress inetSocketAddress) |
void |
checkConnectionAllowed(InetSocketAddress inetSocketAddress,
int numberOfSleepCycles) |
void |
checkConnectionAllowed(int numberOfSleepCycles) |
InetSocketAddress |
getInetSocketAddress() |
long |
getLastReadThreadId() |
long |
getLastWriteThreadId() |
int |
getPotentiallyBufferedInputBytes() |
int |
getPotentiallyBufferedOutputBytes() |
void |
logSocket(long millis)
Deprecated.
|
void |
logSocket(long millis,
int bytesDown,
int bytesUp)
Deprecated.
|
void |
logTraffic(boolean sent,
Protocol protocol,
byte[] traffic,
int off,
int len) |
int |
read(ByteBuffer dst) |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
void |
setConnectionStatus(Integer connectionStatus) |
void |
setLastReadThreadId(long lastReadThreadId) |
void |
setLastWriteThreadId(long lastWriteThreadId) |
void |
setPotentiallyBufferedInputBytes(int potentiallyBufferedInputBytes) |
void |
setPotentiallyBufferedOutputBytes(int potentiallyBufferedOutputBytes) |
Socket |
socket() |
int |
write(ByteBuffer src) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
bind, connect, finishConnect, getDelegate, getFD, getFDVal, getLocalAddress, getOption, getRemoteAddress, implCloseSelectableChannel, implConfigureBlocking, isConnected, isConnectionPending, kill, park, park, setOption, shutdownInput, shutdownOutput, supportedOptions, translateAndSetInterestOps, translateAndSetReadyOps, translateAndUpdateReadyOps, translateInterestOpsblockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerregisterbegin, close, end, isOpenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected SniffySocketChannel(SelectorProvider provider, SocketChannel delegate)
public void setConnectionStatus(Integer connectionStatus)
setConnectionStatus in interface SniffyNetworkConnectionpublic InetSocketAddress getInetSocketAddress()
getInetSocketAddress in interface SniffyNetworkConnection@Deprecated public void logSocket(long millis)
logSocket in interface SniffyNetworkConnection@Deprecated public void logSocket(long millis, int bytesDown, int bytesUp)
logSocket in interface SniffyNetworkConnectionpublic void logTraffic(boolean sent,
Protocol protocol,
byte[] traffic,
int off,
int len)
logTraffic in interface TrafficCapturingNetworkConnectionpublic void checkConnectionAllowed()
throws ConnectException
checkConnectionAllowed in interface SniffyNetworkConnectionConnectExceptionpublic void checkConnectionAllowed(int numberOfSleepCycles)
throws ConnectException
checkConnectionAllowed in interface SniffyNetworkConnectionConnectExceptionpublic void checkConnectionAllowed(InetSocketAddress inetSocketAddress) throws ConnectException
checkConnectionAllowed in interface SniffyNetworkConnectionConnectExceptionpublic void checkConnectionAllowed(InetSocketAddress inetSocketAddress, int numberOfSleepCycles) throws ConnectException
checkConnectionAllowed in interface SniffyNetworkConnectionConnectExceptionpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class SniffySocketChannelAdapterIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read in interface ScatteringByteChannelread in class SniffySocketChannelAdapterIOExceptionpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelwrite in class SniffySocketChannelAdapterIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write in interface GatheringByteChannelwrite in class SniffySocketChannelAdapterIOExceptionpublic Socket socket()
socket in class SniffySocketChannelAdapterpublic int getPotentiallyBufferedInputBytes()
getPotentiallyBufferedInputBytes in interface SniffyNetworkConnectionpublic void setPotentiallyBufferedInputBytes(int potentiallyBufferedInputBytes)
setPotentiallyBufferedInputBytes in interface SniffyNetworkConnectionpublic int getPotentiallyBufferedOutputBytes()
getPotentiallyBufferedOutputBytes in interface SniffyNetworkConnectionpublic void setPotentiallyBufferedOutputBytes(int potentiallyBufferedOutputBytes)
setPotentiallyBufferedOutputBytes in interface SniffyNetworkConnectionpublic long getLastReadThreadId()
getLastReadThreadId in interface SniffyNetworkConnectionpublic void setLastReadThreadId(long lastReadThreadId)
setLastReadThreadId in interface SniffyNetworkConnectionpublic long getLastWriteThreadId()
getLastWriteThreadId in interface SniffyNetworkConnectionpublic void setLastWriteThreadId(long lastWriteThreadId)
setLastWriteThreadId in interface SniffyNetworkConnectionCopyright © 2021. All rights reserved.