public interface PacketLoggingService
Modifier and Type | Interface and Description |
---|---|
static class |
PacketLoggingService.ProtocolName
These are the services that this packet logging service
cab handle.
|
static class |
PacketLoggingService.TransportName
The transport names.
|
Modifier and Type | Method and Description |
---|---|
PacketLoggingConfiguration |
getConfiguration()
Returns the current Packet Logging Configuration.
|
boolean |
isLoggingEnabled()
Determines whether packet logging is globally enabled for this service.
|
boolean |
isLoggingEnabled(PacketLoggingService.ProtocolName protocol)
Determines whether packet logging for a specific protocol is enabled for
this service.
|
void |
logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent)
Log a packet with all the required information.
|
void |
logPacket(PacketLoggingService.ProtocolName protocol,
byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
PacketLoggingService.TransportName transport,
boolean sender,
byte[] packetContent,
int packetOffset,
int packetLength)
Log a packet with all the required information.
|
boolean isLoggingEnabled()
true
if packet logging is globally enabled for this
service; otherwise, false
boolean isLoggingEnabled(PacketLoggingService.ProtocolName protocol)
protocol
- the packet logging protocol to checktrue
if packet logging for protocol
is enabled
for this service; otherwise, false
void logPacket(PacketLoggingService.ProtocolName protocol, byte[] sourceAddress, int sourcePort, byte[] destinationAddress, int destinationPort, PacketLoggingService.TransportName transport, boolean sender, byte[] packetContent)
protocol
- the source protocol that logs this packet.sourceAddress
- the source address of the packet.sourcePort
- the source port of the packet.destinationAddress
- the destination address.destinationPort
- the destination port.transport
- the transport this packet uses.sender
- are we the sender of the packet or not.packetContent
- the packet content.void logPacket(PacketLoggingService.ProtocolName protocol, byte[] sourceAddress, int sourcePort, byte[] destinationAddress, int destinationPort, PacketLoggingService.TransportName transport, boolean sender, byte[] packetContent, int packetOffset, int packetLength)
protocol
- the source protocol that logs this packet.sourceAddress
- the source address of the packet.sourcePort
- the source port of the packet.destinationAddress
- the destination address.destinationPort
- the destination port.transport
- the transport this packet uses.sender
- are we the sender of the packet or not.packetContent
- the packet content.packetOffset
- the packet content offset.packetLength
- the packet content length.PacketLoggingConfiguration getConfiguration()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.