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

List of all members.

Public Member Functions

void sent (ConnectionMode mode, long sizeCompressed, long sizeUncompressed, long duration)
void received (ConnectionMode mode, long sizeCompressed, long sizeUncompressed, long duration)

Detailed Description

Listener for tracking network traffic. Note: It is up to the implementation to do synchronization as the methods offered by this listener may be called in parallel.


Member Function Documentation

void de.fu_berlin.inf.dpp.net.ITransferListener.received ( ConnectionMode  mode,
long  sizeCompressed,
long  sizeUncompressed,
long  duration 
)

Gets called when data was received. The actual size of the real data that was received is the compressed size.

Parameters:
modethe mode used for receiving
sizeCompressedthe compressed size of the data
sizeUncompressedthe uncompressed size of the data
durationtime in milliseconds it took to receive the data
void de.fu_berlin.inf.dpp.net.ITransferListener.sent ( ConnectionMode  mode,
long  sizeCompressed,
long  sizeUncompressed,
long  duration 
)

Gets called when data was sent. The actual size of the real data that was send is the compressed size.

Parameters:
modethe mode used for sending
sizeCompressedthe compressed size of the data
sizeUncompressedthe uncompressed size of the data
durationtime in milliseconds it took to send the data
 All Classes Namespaces Files Functions Variables Enumerations