simnet
Class RIPMessage

java.lang.Object
  extended bysimnet.RIPMessage
All Implemented Interfaces:
java.io.Serializable

public class RIPMessage
extends java.lang.Object
implements java.io.Serializable

The object used to send a RIP Advertisment.

See Also:
Serialized Form

Field Summary
 int[] dests
          The destination networks.
 int[] distances
          The distances to each destination network.
 int[] fixed_bits
          The size of each destination network.
 int source
          The IP of the node sending this advertisment.
 
Constructor Summary
RIPMessage(int src, int size)
          Create a new RIP message from the specified source with space for the specified number of routes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public int source
The IP of the node sending this advertisment.


dests

public int[] dests
The destination networks.


distances

public int[] distances
The distances to each destination network.


fixed_bits

public int[] fixed_bits
The size of each destination network.

Constructor Detail

RIPMessage

public RIPMessage(int src,
                  int size)
Create a new RIP message from the specified source with space for the specified number of routes.