public interface Sniffer
Modifier and Type | Method and Description |
---|---|
int |
received(ByteBuffer data,
int nrBytes)
Invoked on data receive/transmission.
|
default IOException |
received(IOException ex)
Allows to intercept read errors and change/suppress them.
|
int received(ByteBuffer data, int nrBytes)
data
- - the byte buffer containing the data.nrBytes
- - number of bytes in the buffer. The data in the buffer is from position-nrBytes to position.
nrBytes will be -1 on EOF.@Nullable default IOException received(IOException ex)
ex
- Copyright © 2018 SPF4J. All rights reserved.