Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.IPacketInterceptor Interface Reference

List of all members.

Public Member Functions

boolean receivedPacket (BinaryXMPPExtension extension)
boolean sendPacket (String connectID, TransferDescription description, byte[] payload)

Detailed Description

An interface for intercepting packages that are about to send or dispatched via the DataTransferManager


Member Function Documentation

boolean de.fu_berlin.inf.dpp.net.IPacketInterceptor.receivedPacket ( BinaryXMPPExtension  extension)

This method is called before the DataTransferManager is dispatching the packet.

Parameters:
extension
Returns:
true if the packet should be dispatched, false if the packet should be dropped
boolean de.fu_berlin.inf.dpp.net.IPacketInterceptor.sendPacket ( String  connectID,
TransferDescription  description,
byte[]  payload 
)

This method is called before the DataTransferManager is sending the packet.

Parameters:
connectID
description
payload
Returns:
true if the packet should be send, false if the packet should be dropped
 All Classes Namespaces Files Functions Variables Enumerations