34 vrpn_int32 request_logging_m_id;
35 vrpn_int32 report_logging_m_id;
36 vrpn_int32 request_logging_status_m_id;
42 bool pack_log_message_of_type(vrpn_int32 type,
43 const char *local_in_logfile_name,
44 const char *local_out_logfile_name,
45 const char *remote_in_logfile_name,
46 const char *remote_out_logfile_name);
54 bool unpack_log_message_from_buffer(
const char *buf, vrpn_int32 buflen,
55 char **local_in_logfile_name,
56 char **local_out_logfile_name,
57 char **remote_in_logfile_name,
58 char **remote_out_logfile_name);
84 handle_request_logging(
const char *local_in_logfile_name,
85 const char *local_out_logfile_name,
86 const char *remote_in_logfile_name,
87 const char *remote_out_logfile_name) = 0;
91 bool send_report_logging(
const char *local_in_logfile_name,
92 const char *local_out_logfile_name,
93 const char *remote_in_logfile_name,
94 const char *remote_out_logfile_name)
99 return pack_log_message_of_type(
100 report_logging_m_id, local_in_logfile_name, local_out_logfile_name,
101 remote_in_logfile_name, remote_out_logfile_name);
110 virtual void handle_dropped_last_connection(
void);
111 vrpn_int32 dropped_last_connection_m_id;
113 static int VRPN_CALLBACK
118 static int VRPN_CALLBACK
122 virtual void handle_request_logging_status() = 0;
123 static int VRPN_CALLBACK
207 bool send_logging_request(
const char *local_in_logfile_name,
208 const char *local_out_logfile_name =
"",
209 const char *remote_in_logfile_name =
"",
210 const char *remote_out_logfile_name =
"")
215 return pack_log_message_of_type(
216 request_logging_m_id, local_in_logfile_name, local_out_logfile_name,
217 remote_in_logfile_name, remote_out_logfile_name);
220 bool send_logging_status_request()
225 return pack_log_message_of_type(request_logging_status_m_id, NULL, NULL,
230 virtual int register_report_handler(
void *userdata,
231 vrpn_AUXLOGGERREPORTHANDLER handler)
233 return d_callback_list.register_handler(userdata, handler);
235 virtual int unregister_report_handler(
void *userdata,
236 vrpn_AUXLOGGERREPORTHANDLER handler)
238 return d_callback_list.unregister_handler(userdata, handler);
249 static int VRPN_CALLBACK