SSF.OS.BGP4.Comm
Class KeepAliveMessage

java.lang.Object
  |
  +--SSF.OS.ProtocolMessage
        |
        +--SSF.OS.BGP4.Comm.Message
              |
              +--SSF.OS.BGP4.Comm.KeepAliveMessage
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class KeepAliveMessage
extends Message

A BGP KeepAlive message. BGP KeepAlive messages contain no fields in addition to the header fields. This class is here for completeness only.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class SSF.OS.BGP4.Comm.Message
KEEPALIVE, nh, NOTICEUPDATE, NOTIFICATION, OCTETS_IN_HEADER, OPEN, RUN, STARTSTOP, TIMEOUT, TRANSPORT, typ, typeNames, UPDATE, version
 
Constructor Summary
KeepAliveMessage()
          Empty constructor.
KeepAliveMessage(java.lang.String nh)
          Constructs a KeepAlive message by calling the parent class constructor.
 
Method Summary
 int body_bytecount()
          Returns the number of octets (bytes) in the message body, which is zero for a KeepAlive message.
 
Methods inherited from class SSF.OS.BGP4.Comm.Message
bytecount, header_bytecount, readExternal, toString, type2str, version, writeExternal
 
Methods inherited from class SSF.OS.ProtocolMessage
carryPayload, copy, dropHeader, dropPayload, frombytes, fromVersion, payload, previous, size, tobytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeepAliveMessage

public KeepAliveMessage()
Empty constructor. Used to deserialize this object.


KeepAliveMessage

public KeepAliveMessage(java.lang.String nh)
Constructs a KeepAlive message by calling the parent class constructor.

Parameters:
nh - The NH part of the NHI address of the sender of this message.
Method Detail

body_bytecount

public int body_bytecount()
Returns the number of octets (bytes) in the message body, which is zero for a KeepAlive message.

Overrides:
body_bytecount in class Message
Returns:
the number of octets (bytes) in the message body