net.clackrouter.packets
Class VNSPacketArrivalEvent
java.lang.Object
java.util.EventObject
net.clackrouter.packets.VNSPacketArrivalEvent
- All Implemented Interfaces:
- java.io.Serializable
public class VNSPacketArrivalEvent
- extends java.util.EventObject
Encapsulates an event that is sent to all interested parties when a
packet arrives at a particular destination, for example the box input port,
the box itself, or the box output port.
- See Also:
VNSPacketArrivalListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_packet
protected VNSPacket m_packet
VNSPacketArrivalEvent
public VNSPacketArrivalEvent(java.lang.Object source,
VNSPacket packet)
- Constructs communcation object event.
- Parameters:
source
- Object that is sending this eventpacket
- The packet to be sent
getPacket
public VNSPacket getPacket()
- Returns the packet object associated with the event.
- Returns:
- Packet