net.java.sip.communicator.impl.netaddr
Class Ice4jPacketLogger
java.lang.Object
net.java.sip.communicator.impl.netaddr.Ice4jPacketLogger
- All Implemented Interfaces:
- org.ice4j.stack.PacketLogger
public class Ice4jPacketLogger
- extends Object
- implements org.ice4j.stack.PacketLogger
Logs Packets coming and going through ice4j stack.
- Author:
- Damian Minkov
|
Method Summary |
boolean |
isEnabled()
Checks whether the logger is enabled. |
void |
logPacket(byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
byte[] packetContent,
boolean sender)
Logs a incoming or outgoing packet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ice4jPacketLogger
public Ice4jPacketLogger()
logPacket
public void logPacket(byte[] sourceAddress,
int sourcePort,
byte[] destinationAddress,
int destinationPort,
byte[] packetContent,
boolean sender)
- Logs a incoming or outgoing packet.
- Specified by:
logPacket in interface org.ice4j.stack.PacketLogger
- Parameters:
sourceAddress - the source address of the packet.sourcePort - the source port.destinationAddress - the destination address of the packet.destinationPort - the destination port.packetContent - the content of the packet.sender - whether we are sending or not the packet.
isEnabled
public boolean isEnabled()
- Checks whether the logger is enabled.
- Specified by:
isEnabled in interface org.ice4j.stack.PacketLogger
- Returns:
- true if the logger is enabled, false
otherwise.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.