de.knup.jedi.jayshare.Fileshare
Class FileshareListener

java.lang.Object
  |
  +--de.knup.jedi.jayshare.Fileshare.FileshareListener

public class FileshareListener
extends java.lang.Object
implements PacketListener


Field Summary
(package private)  JayPacketListener listener
           
(package private)  Status status
           
 
Constructor Summary
FileshareListener(JayPacketListener listener, Status status)
           
 
Method Summary
 void receivedPacket(PacketEvent event)
          called when a packet is received and processed.
 void sendFailed(PacketEvent event)
          called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).
 void sentPacket(PacketEvent event)
          called whenever a local client sends a packet, after the sending is successful
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

listener

JayPacketListener listener

status

Status status
Constructor Detail

FileshareListener

public FileshareListener(JayPacketListener listener,
                         Status status)
Method Detail

sentPacket

public void sentPacket(PacketEvent event)
Description copied from interface: PacketListener
called whenever a local client sends a packet, after the sending is successful
Specified by:
sentPacket in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent that has just been sent

sendFailed

public void sendFailed(PacketEvent event)
Description copied from interface: PacketListener
called if a packet is not successfully sent (for instance, if the connection dies while the packet is queued, or a packet is sent while disconnected).
Specified by:
sendFailed in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent for the failed send

receivedPacket

public void receivedPacket(PacketEvent event)
Description copied from interface: PacketListener
called when a packet is received and processed.
Specified by:
receivedPacket in interface PacketListener
Tags copied from interface: PacketListener
Parameters:
pe - PacketEvent that has just been received.