SSF.Net
Interface packetQueue

All Known Implementing Classes:
droptailQueue

public interface packetQueue

Generic interface for all classes implementing DML-configurable IP packet queues.


Method Summary
 void config(NIC nic, com.renesys.raceway.DML.Configuration cfg)
          Method called by SSF.Net.NIC during model configuration phase if the attribute interface.queue is present.
 boolean enqueue(ProtocolMessage msg)
          enqueue() should return true if a packet is successfully enqueued, and should return false if the queue rejects the packet.
 void init()
          Method called by SSF.Net.NIC during model initialization phase.
 

Method Detail

enqueue

public boolean enqueue(ProtocolMessage msg)
enqueue() should return true if a packet is successfully enqueued, and should return false if the queue rejects the packet.


config

public void config(NIC nic,
                   com.renesys.raceway.DML.Configuration cfg)
Method called by SSF.Net.NIC during model configuration phase if the attribute interface.queue is present. Required attributes:
interface [
    ...
     queue [
       use "classname"

       ... any user-defined queue attributes here
     ]
   ]


init

public void init()
Method called by SSF.Net.NIC during model initialization phase.