![]() |
|
|
#include <jdwpreply.h>
Inheritance diagram for inspectorj::jdwp::JDWPReply:
Definition at line 42 of file jdwpreply.h.
Public Member Functions | |
JDWPReply (jdwpReplyPacket &) | |
Constructor that wraps a jdwpReplyPacket struct. | |
~JDWPReply () | |
Destructor. | |
jbyte | getPacketType () |
Returns a jbyte that indicates whether this is reply packet or a command packet. | |
jint | getId () |
Returns the packet id. | |
short | getErrorCode () |
Returns the error code if any. | |
void | setErrorCode (short) |
JDWPReply * | copy () |
Copy function that produces a deep copy of this . | |
Private Attributes | |
jdwpReplyPacket | reply |
The jdwpReplyPacket struct. |
JDWPReply::JDWPReply | ( | jdwpReplyPacket & | replyPacket | ) |
Constructor that wraps a jdwpReplyPacket struct.
replyPacket | A jdwpReplyPacket struct |
Definition at line 38 of file jdwpreply.cpp.
References inspectorj::jdwp::JDWPPacket::bytes, inspectorj::jdwp::JDWPPacket::data, inspectorj::jdwp::JDWP_HEADER_LENGTH, and reply.
Referenced by copy().
JDWPReply::~JDWPReply | ( | ) |
jbyte JDWPReply::getPacketType | ( | ) | [virtual] |
Returns a jbyte that indicates whether this is reply packet or a command packet.
Implements inspectorj::jdwp::JDWPPacket.
Definition at line 89 of file jdwpreply.cpp.
Referenced by inspectorj::agent::AgentSocket::writeReply().
jint JDWPReply::getId | ( | ) | [virtual] |
Returns the packet id.
Implements inspectorj::jdwp::JDWPPacket.
Definition at line 97 of file jdwpreply.cpp.
References reply.
Referenced by inspectorj::agent::AgentSocket::writeReply().
short JDWPReply::getErrorCode | ( | ) | [virtual] |
Returns the error code if any.
Reimplemented from inspectorj::jdwp::JDWPPacket.
Definition at line 105 of file jdwpreply.cpp.
References reply.
Referenced by inspectorj::agent::AgentSocket::writeReply().
JDWPReply * JDWPReply::copy | ( | ) | [virtual] |
Copy function that produces a deep copy of this
.
This function re-implements JDWPPacket::copy(). This is necessary since the base class, JDWPPacket, has pure virtual functions and therefore cannot provide a copy constructor.
Implements inspectorj::jdwp::JDWPPacket.
Definition at line 69 of file jdwpreply.cpp.
References JDWPReply(), and reply.
jdwpReplyPacket inspectorj::jdwp::JDWPReply::reply [private] |
The jdwpReplyPacket struct.
Definition at line 55 of file jdwpreply.h.
Referenced by copy(), getErrorCode(), getId(), JDWPReply(), setErrorCode(), and ~JDWPReply().