|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolMessage
|
+--SSF.OS.BGP4.Comm.Message
|
+--SSF.OS.BGP4.Comm.TransportMessage
A BGP transport message. It is used internally by BGP to indicate when transport events occur, such as sockets being opened or closed.
| Field Summary | |
java.lang.String |
nh
The NHI prefix of the neighbor/peer with whom this transport message is associated. |
tcpSocket |
sock
The specific socket to which this transport message applies, if any. |
int |
trans_type
Indicates the type of transport message. |
| Fields inherited from class SSF.OS.BGP4.Comm.Message |
KEEPALIVE, NOTICEUPDATE, NOTIFICATION, OCTETS_IN_HEADER, OPEN, RUN, STARTSTOP, TIMEOUT, TRANSPORT, typ, typeNames, UPDATE, version |
| Constructor Summary | |
TransportMessage()
Empty constructor. |
|
TransportMessage(int t,
java.lang.String nhipre,
tcpSocket s)
Constructs a transport message given a type code and peer NHI prefix. |
|
| Method Summary | |
void |
readExternal(java.io.ObjectInput in)
Reads the contents of this object from a serialization stream. |
void |
writeExternal(java.io.ObjectOutput out)
Writes the contents of this object to a serialization stream. |
| Methods inherited from class SSF.OS.BGP4.Comm.Message |
body_bytecount, bytecount, header_bytecount, toString, type2str, version |
| 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 |
| Field Detail |
public int trans_type
public java.lang.String nh
public tcpSocket sock
| Constructor Detail |
public TransportMessage()
public TransportMessage(int t,
java.lang.String nhipre,
tcpSocket s)
t - The type of the transport message.nhipre - The NHI prefix of the neighbor/peer to whom this message
applies.| Method Detail |
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class Messagejava.io.IOException - if there's an error writing the data
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class Messagejava.io.IOException - if there's an error reading in the data
java.lang.ClassNotFoundException - if a class name is unrecognized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||