src/net/java/sip/communicator/impl/packetlogging/PacketLoggingServiceImpl.java
/**
     * Log a packet with all the required information.
     *
     * @param protocol the source protocol that logs this packet.
     * @param sourceAddress the source address of the packet.
     * @param sourcePort the source port of the packet.
     * @param destinationAddress the destination address.
     * @param destinationPort the destination port.
     * @param transport the transport this packet uses.
     * @param sender are we the sender of the packet or not.
     * @param packetContent the packet content.
     * @param packetOffset the packet content offset.
     * @param packetLength the packet content length.
     */
Log a packet with all the required information.
@param protocol the source protocol that logs this packet.
@param sourceAddress the source address of the packet.
@param sourcePort the source port of the packet.
@param destinationAddress the destination address.
@param destinationPort the destination port.
@param transport the transport this packet uses.
@param sender are we the sender of the packet or not.
@param packetContent the packet content.
@param packetOffset the packet content offset.
@param packetLength the packet content length.
Log a packet with all the required information . @param protocol the source protocol that logs this packet . @param sourceAddress the source address of the packet . @param sourcePort the source port of the packet . @param destinationAddress the destination address . @param destinationPort the destination port . @param transport the transport this packet uses . @param sender are we the sender of the packet or not . @param packetContent the packet content . @param packetOffset the packet content offset . @param packetLength the packet content length .
public void logPacket(
            ProtocolName protocol,
            byte[] sourceAddress,
            int sourcePort,
            byte[] destinationAddress,
            int destinationPort,
            TransportName transport,
            boolean sender,
            byte[] packetContent,
            int packetOffset,
            int packetLength)
    {
        saverThread.queuePacket(
            new Packet(protocol,
                       sourceAddress,
                       sourcePort,
                       destinationAddress,
                       destinationPort,
                       transport,
                       sender,
                       packetContent,
                       packetOffset,
                       packetLength));
    }
public void logPacket ( ProtocolName protocol , byte [ ] sourceAddress , int sourcePort , byte [ ] destinationAddress , int destinationPort , TransportName transport , boolean sender , byte [ ] packetContent , int packetOffset , int packetLength ) { saverThread . queuePacket ( new Packet ( protocol , sourceAddress , sourcePort , destinationAddress , destinationPort , transport , sender , packetContent , packetOffset , packetLength ) ) ; }
Log a packet with all the required information.
Log a packet with all the required information .