#include <vmwrpc.h>
Inherits VMWareRpcData.
Inherited by BufferedRPCChannel< t_pBuffer, t_BufferSize > [private]
.
Public Member Functions | |
VMWareRPCChannel () | |
~VMWareRPCChannel () | |
unsigned | ExecuteCommand (const char *pszRequest, char *pszBuffer, unsigned MaxBufferSize) |
Executes a single GuestRPC request. | |
bool | Valid () |
bool | IsVBoxDetected () |
Protected Member Functions | |
bool | Send (const char *pData, unsigned Size=0) |
bool | Receive (void *pData, unsigned Size) |
bool | EndReceive () |
unsigned | GetReplySize () |
Private Attributes | |
bool | m_bVBoxDetected |
This class provides a convenient way of executing GuestRPC commands. It automatically manages the internal state variables of a GuestRPC channel, opening it from a constructor and closing from a destructor. All channel interaction is performed using VMWareRPCChannel::ExecuteCommand() method. A channel is reusable, i.e. multiple commands can be executed sequentially without reopening a channel.
Definition at line 350 of file vmwrpc.h.
VMWareRPCChannel::VMWareRPCChannel | ( | ) | [inline] |
VMWareRPCChannel::~VMWareRPCChannel | ( | ) | [inline] |
bool VMWareRPCChannel::EndReceive | ( | ) | [inline, protected] |
Reimplemented in BufferedRPCChannel< t_pBuffer, t_BufferSize >.
Definition at line 381 of file vmwrpc.h.
unsigned VMWareRPCChannel::ExecuteCommand | ( | const char * | pszRequest, | |
char * | pszBuffer, | |||
unsigned | MaxBufferSize | |||
) | [inline] |
unsigned VMWareRPCChannel::GetReplySize | ( | ) | [inline, protected] |
Reimplemented in BufferedRPCChannel< t_pBuffer, t_BufferSize >.
bool VMWareRPCChannel::Receive | ( | void * | pData, | |
unsigned | Size | |||
) | [inline, protected] |
Reimplemented in BufferedRPCChannel< t_pBuffer, t_BufferSize >.
Definition at line 364 of file vmwrpc.h.
bool VMWareRPCChannel::Send | ( | const char * | pData, | |
unsigned | Size = 0 | |||
) | [inline, protected] |
bool VMWareRPCChannel::Valid | ( | ) | [inline] |
Reimplemented in BufferedRPCChannel< t_pBuffer, t_BufferSize >.
bool VMWareRPCChannel::m_bVBoxDetected [private] |