![]() |
RflySimSDK v3.05
RflySimSDK说明文档
|
#include <vrpn_BaseClass.h>
类 | |
class | SendTextMessageBoundCall |
Public 成员函数 | |
vrpn_Connection * | connectionPtr () |
Returns a pointer to the connection this object is using | |
Public 属性 | |
bool | shutup |
Protected 成员函数 | |
int | register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER) |
int | send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0) |
Sends a NULL-terminated text message from the device d_sender_id | |
SendTextMessageBoundCall | send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL) |
void | server_mainloop (void) |
void | client_mainloop (void) |
静态 Protected 成员函数 | |
static int | encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg) |
static int | decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf) |
Decodes the body of the text message from a buffer from the connection | |
Protected 属性 | |
vrpn_Connection * | d_connection |
Connection that this object talks to | |
char * | d_servicename |
vrpn_int32 | d_sender_id |
part | |
vrpn_int32 | d_text_message_id |
ID for text messages | |
vrpn_int32 | d_ping_message_id |
Ask the server if they are there | |
vrpn_int32 | d_pong_message_id |
Server telling that it is there | |
友元 | |
class VRPN_API | vrpn_TextPrinter |
class | SendTextMessageBoundCall |
INTERNAL class to hold members that there should only be one copy of even when a class inherits from multiple vrpn_BaseClasses because it inherits from multiple user-level classes. Note that not everything in vrpnBaseClass should be here, because (for example) the registration of types should be done for each parent class.
|
protected |
Handles functions that all clients should provide in their mainloop() (warning of no server, for example) Should be called by all clients in their mainloop()
|
inline |
Returns a pointer to the connection this object is using
|
staticprotected |
Decodes the body of the text message from a buffer from the connection
|
staticprotected |
Encodes the body of the text message into a buffer, preparing for sending
|
protected |
Registers a handler with the connection, and remembers to delete at destruction.
|
protected |
Sends a NULL-terminated text message from the device d_sender_id
|
inlineprotected |
Returns an object you can stream into to send a text message from the device like send_text_message(vrpn_TEXT_WARNING) << "Value of i is: " << i; This use requires including vrpn_SendTextMessageStreamProxy.h
|
protected |
Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should be called by all servers in their mainloop()
|
protected |
Connection that this object talks to
|
protected |
Ask the server if they are there
|
protected |
Server telling that it is there
|
protected |
part
Sender ID registered with the connection
|
protected |
Name of this device, not including the connection
|
protected |
ID for text messages