|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eyebolt.iplib.IPMessage
Message for transmission by ipmanager
Field Summary | |
(package private) byte[] |
bytes
content |
static int |
CORRUPT
Description of the Field |
static int |
DISCONNECTED
Description of the Field |
(package private) MessageHeader |
header
header for this message |
static int |
INVALID
Description of the Field |
(package private) static int |
nextMessageId
Class variable message counter |
static int |
NOTREADY
Description of the Field |
(package private) boolean |
replyExpected
If true, this message expects a reply |
(package private) int |
status
status of message |
static int |
TIMEOUT
Description of the Field |
static int |
VALID
Description of the Field |
Constructor Summary | |
|
IPMessage()
Construct a IPMessage |
(package private) |
IPMessage(byte[] buf)
Method for unflattening a message |
Method Summary | |
void |
dump(java.io.PrintStream out)
Dump the contents of this message to an output stream. |
void |
flattenAt(byte[] buf)
Serializes this message into a byte array |
(package private) MessageHeader |
getHeader()
Gets the Header attribute of the IPMessage object |
int |
getLen()
Gets the Len attribute of the IPMessage object |
int |
getMid()
Gets the Mid attribute of the IPMessage object |
int |
getMsg(byte[] buf)
Gets the content of the message as a byte array. |
byte[] |
getMsgBytes()
Gets the content of the message as a byte array. |
static int |
getNextMessageId()
Get the next message id in the sequence. |
(package private) boolean |
getReplyExpected()
Gets the ReplyExpected attribute of the IPMessage object |
(package private) int |
getResponseId()
Fetch the message ResponseId |
int |
getStatus()
Gets the Status attribute of the IPMessage object |
int |
getTotalLen()
Gets the TotalLen attribute of the IPMessage object |
int |
moveMsg(IPMessage oldmsg)
Deprecated. Not implemented in Java |
int |
putMsg(byte[] buf)
Fill this message with the supplied byte array. |
int |
putMsg(byte[] buf,
int len)
Fill this message with the buffer supplied, up to the length provided. |
int |
reset()
Description of the Method |
(package private) void |
setHeader(MessageHeader header)
Sets the Header attribute of the IPMessage object |
void |
setMid(int newid)
Sets the Mid attribute of the IPMessage object |
(package private) void |
setReplyExpected(boolean replyExpected)
Sets the ReplyExpected attribute of the IPMessage object |
void |
setStatus(int newstat)
Sets the Status attribute of the IPMessage object |
java.lang.String |
toString()
Build a string describing the header values. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int NOTREADY
public static final int VALID
public static final int INVALID
public static final int TIMEOUT
public static final int CORRUPT
public static final int DISCONNECTED
MessageHeader header
byte[] bytes
int status
boolean replyExpected
static int nextMessageId
Constructor Detail |
public IPMessage()
IPMessage(byte[] buf)
buf
- byte array containing the messageMethod Detail |
public void setStatus(int newstat)
newstat
- The new Status valuepublic void setMid(int newid)
newid
- The new Mid valuepublic int getMid()
int getResponseId()
public int getStatus()
public int getLen()
public int getTotalLen()
public int getMsg(byte[] buf)
buf
- Description of Parameterpublic byte[] getMsgBytes()
public int moveMsg(IPMessage oldmsg)
oldmsg
- Description of Parameterpublic int putMsg(byte[] buf)
buf
- Description of Parameterpublic int putMsg(byte[] buf, int len)
buf
- buffer to insert in the messagelen
- # of bytes to usepublic int reset()
public void flattenAt(byte[] buf)
buf
- Description of Parameterpublic java.lang.String toString()
toString
in class java.lang.Object
public void dump(java.io.PrintStream out)
out
- a PrintStream
to send dumppublic static int getNextMessageId()
void setHeader(MessageHeader header)
newid
- The new Header valueMessageHeader getHeader()
void setReplyExpected(boolean replyExpected)
replyExpected
- if true, this message will expect a replyboolean getReplyExpected()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |