public interface PacketLogger
Modifier and Type | Method and Description |
---|---|
void |
log(java.lang.String prefix,
java.net.SocketAddress local,
java.net.SocketAddress remote,
byte[] data)
Logs data (usually a DNS message in wire format) that was sent or received within the dnsjava
library.
|
void log(java.lang.String prefix, java.net.SocketAddress local, java.net.SocketAddress remote, byte[] data)
This method can be invoked concurrently from any thread.
prefix
- a note of where the package originated, e.g. TCP read
.local
- the local (i.e. this pc) socket address of the communication channel.remote
- the remote (i.e. the server) socket address of the communication channel.data
- the transferred data, usually a complete DNS message.