|
| vrpn_FunctionGenerator_Server (const char *name, vrpn_uint32 numChannels=vrpn_FUNCTION_CHANNELS_MAX, vrpn_Connection *c=NULL) |
|
virtual void | mainloop () |
|
virtual void | setChannel (vrpn_uint32 channelNum, vrpn_FunctionGenerator_channel *channel)=0 |
|
virtual void | start ()=0 |
|
virtual void | stop ()=0 |
|
virtual void | setSampleRate (vrpn_float32 rate)=0 |
|
vrpn_uint32 | setNumChannels (vrpn_uint32 numChannels) |
|
virtual const char * | getInterpreterDescription ()=0 |
|
| vrpn_FunctionGenerator (const char *name, vrpn_Connection *c=NULL) |
|
const vrpn_FunctionGenerator_channel * | getChannel (vrpn_uint32 channelNum) |
|
vrpn_uint32 | getNumChannels () const |
|
vrpn_float32 | getSampleRate () |
|
| vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL) |
|
vrpn_Connection * | connectionPtr () |
| Returns a pointer to the connection this object is using
|
|
|
static int VRPN_CALLBACK | handle_channel_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_channelRequest_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_allChannelRequest_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_start_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_stop_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_sample_rate_message (void *userdata, vrpn_HANDLERPARAM p) |
|
static int VRPN_CALLBACK | handle_interpreter_request_message (void *userdata, vrpn_HANDLERPARAM p) |
|
|
int | sendChannelReply (vrpn_uint32 channelNum) |
|
int | sendSampleRateReply () |
|
int | sendStartReply (vrpn_bool started) |
|
int | sendStopReply (vrpn_bool stopped) |
|
int | sendInterpreterDescription () |
|
int | sendError (FGError error, vrpn_int32 channel) |
|
vrpn_int32 | decode_channel (const char *buf, const vrpn_int32 len, vrpn_uint32 &channelNum, vrpn_FunctionGenerator_channel &channel) |
|
vrpn_int32 | decode_channel_request (const char *buf, const vrpn_int32 len, vrpn_uint32 &channelNum) |
|
vrpn_int32 | decode_sampleRate_request (const char *buf, const vrpn_int32 len, vrpn_float32 &sampleRate) |
|
vrpn_int32 | encode_channel_reply (char **buf, vrpn_int32 &len, const vrpn_uint32 channelNum) |
|
vrpn_int32 | encode_start_reply (char **buf, vrpn_int32 &len, const vrpn_bool isStarted) |
|
vrpn_int32 | encode_stop_reply (char **buf, vrpn_int32 &len, const vrpn_bool isStopped) |
|
vrpn_int32 | encode_sampleRate_reply (char **buf, vrpn_int32 &len, const vrpn_float32 sampleRate) |
|
vrpn_int32 | encode_interpreterDescription_reply (char **buf, vrpn_int32 &len, const char *desc) |
|
vrpn_int32 | encode_error_report (char **buf, vrpn_int32 &len, const FGError err, const vrpn_int32 channel) |
|
virtual int | register_types () |
|
virtual int | init (void) |
|
virtual int | register_senders (void) |
|
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) |
|
|
enum | FGError {
NO_FG_ERROR = 0
, INTERPRETER_ERROR = 1
, TAKING_TOO_LONG = 2
, INVALID_RESULT_QUANTITY = 3
,
INVALID_RESULT_RANGE = 4
} |
|
bool | shutup |
|
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
|
|
vrpn_float32 | sampleRate |
|
vrpn_uint32 | numChannels |
|
vrpn_FunctionGenerator_channel * | channels [vrpn_FUNCTION_CHANNELS_MAX] |
|
vrpn_int32 | channelMessageID |
|
vrpn_int32 | requestChannelMessageID |
|
vrpn_int32 | requestAllChannelsMessageID |
|
vrpn_int32 | sampleRateMessageID |
|
vrpn_int32 | startFunctionMessageID |
|
vrpn_int32 | stopFunctionMessageID |
|
vrpn_int32 | requestInterpreterMessageID |
|
vrpn_int32 | channelReplyMessageID |
|
vrpn_int32 | startFunctionReplyMessageID |
|
vrpn_int32 | stopFunctionReplyMessageID |
|
vrpn_int32 | sampleRateReplyMessageID |
|
vrpn_int32 | interpreterReplyMessageID |
|
vrpn_int32 | errorMessageID |
|
vrpn_int32 | gotConnectionMessageID |
|
char | msgbuf [vrpn_CONNECTION_TCP_BUFLEN] |
|
struct timeval | timestamp |
|
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
|
|