JML

net.sf.jqql.events
Interface IPacketListener

All Known Implementing Classes:
DiskFamilyProcessor

public interface IPacketListener

Define two methods, one is triggerd when the packet arrives, and the other when the packet is sent out. 定义了两个方法,一个在包到达时触发,一个在包发送完时触发

Author:
luma

Method Summary
 boolean accept(InPacket in)
          Indicate whether accept the packet or not.
 void packetArrived(PacketEvent e)
          call when the packet arrives.
 

Method Detail

packetArrived

void packetArrived(PacketEvent e)
call when the packet arrives. 包到达时调用此方法

Parameters:
e -

accept

boolean accept(InPacket in)
Indicate whether accept the packet or not. 是否接收某个输入包

Parameters:
in - InPacket subclass InPacket子类
Returns:
true indicates to accept true表示接收

JML