gov.nist.antd.ssf.net
Interface InputMonitor

All Known Implementing Classes:
InputTrafficMonitor

public interface InputMonitor

Interface for classes that monitor incoming packets.

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government in the course of
 their official duties. Pursuant to title 17 Section 105 of the United
 States Code this software is not subject to copyright protection and
 is in the public domain.
 NIST assumes no responsibility whatsoever for its use by other parties,
 and makes no guarantees, expressed or implied, about its quality,
 reliability, or any other characteristic.
 
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.

Author:
borchert
, rouil

Method Summary
 void config(NIC ownerNIC, com.renesys.raceway.DML.Configuration cfg)
          Method called by NIC during model configuration phase if the attribute interface.monitor is present.
 void init()
          Method called by SSF.Net.NIC during model initialization phase Any configuration actions depending on other protocols should be done in the "init" phase.
 void receive(ProtocolMessage packet)
          Method called by _NIC when a packet is received is enqueued.
 

Method Detail

config

public void config(NIC ownerNIC,
                   com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Method called by NIC during model configuration phase if the attribute interface.monitor is present. Required attributes:
interface [
    ...
     inputMonitor [
       use "classname"

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

Parameters:
ownerNIC - The nic that received the packets
cfg - The DML configuration of the monitor
com.renesys.raceway.DML.configException

init

public void init()
Method called by SSF.Net.NIC during model initialization phase Any configuration actions depending on other protocols should be done in the "init" phase.


receive

public void receive(ProtocolMessage packet)
Method called by _NIC when a packet is received is enqueued.

Parameters:
packet - The received packet.