![]() |
|
|
#include <agentsocket.h>
Definition at line 48 of file agentsocket.h.
Public Member Functions | |
AgentSocket (tcp::socket *socket, boost::system::error_code *error) | |
Constructor. | |
bool | read (jint &i) |
Read sizeof(jint) bytes into an int reference. | |
bool | read (jbyte &j) |
Read 1 byte into a jbyte reference. | |
bool | read (char *ch, int len) |
Read len bytes into a char*. | |
bool | write (jint i) |
Write sizeof(jint) bytes to the socket stream. | |
bool | write (short s) |
Write 2 bytes to the socket stream. | |
bool | write (jbyte j) |
Write 1 byte to the socket stream. | |
bool | writeReply (JDWPReply *) |
Private Attributes | |
boost::asio::ip::tcp::socket * | socket |
boost::system::error_code * | error |
inspectorj::agent::AgentSocket::AgentSocket | ( | tcp::socket * | socket, | |
boost::system::error_code * | error | |||
) |
Constructor.
socket | tcp::socket | |
error | boost::system::error_code |
Definition at line 40 of file agentsocket.cpp.
bool inspectorj::agent::AgentSocket::read | ( | jint & | i | ) |
Read sizeof(jint) bytes into an int reference.
Returns true if sizeof(jint) bytes are read and there is no error.
i | jint reference to read bytes into |
Definition at line 51 of file agentsocket.cpp.
Referenced by inspectorj::agent::AgentServer::start().
bool inspectorj::agent::AgentSocket::read | ( | jbyte & | j | ) |
Read 1 byte into a jbyte reference.
Returns true if 1 byte is read and there is no error.
j | jbyte reference to read the byte into |
Definition at line 78 of file agentsocket.cpp.
bool inspectorj::agent::AgentSocket::read | ( | char * | ch, | |
int | len | |||
) |
Read len bytes into a char*.
Returns true if len bytes are read and there is no error.
ch | char* to read the byte into | |
len | number of bytes to read |
Definition at line 99 of file agentsocket.cpp.
bool inspectorj::agent::AgentSocket::write | ( | jint | i | ) |
Write sizeof(jint) bytes to the socket stream.
Returns true if sizeof(jint) bytes are written and there is no error.
i | jint reference |
Definition at line 115 of file agentsocket.cpp.
Referenced by writeReply().
bool inspectorj::agent::AgentSocket::write | ( | short | s | ) |
Write 2 bytes to the socket stream.
Returns true if 2 bytes are written and there is no error.
i | short reference |
Definition at line 144 of file agentsocket.cpp.
bool inspectorj::agent::AgentSocket::write | ( | jbyte | j | ) |
Write 1 byte to the socket stream.
Returns true if 1 byte is written and there is no error.
j | jbyte reference to write |
Definition at line 165 of file agentsocket.cpp.