Sending and Receiving Vivox Messages
Learn how to send messages to groups.
Read time 2 minutesLast updated 20 hours ago
Functions
Name | |
|---|---|
| VIVOXSDK_DLLEXPORT int | vx_get_message(vx_message_base_t ** message) The VxSDK polling function. |
| VIVOXSDK_DLLEXPORT int | vx_issue_request(vx_req_base_t * request) |
| VIVOXSDK_DLLEXPORT int | vx_issue_request2(vx_req_base_t * request) Execute the given request. |
| VIVOXSDK_DLLEXPORT int | vx_issue_request3(vx_req_base_t * request, int * request_count) Execute the given request. |
| VIVOXSDK_DLLEXPORT int | vx_register_message_notification_handler(void(*)(void *) pf_handler, void * cookie) Register a callback that is called when a message is placed in the queue. |
| VIVOXSDK_DLLEXPORT int | vx_unregister_message_notification_handler(void(*)(void *) pf_handler, void * cookie) Unregister a notification handler. |
| VIVOXSDK_DLLEXPORT vx_message_base_t * | vx_wait_for_message(int msTimeout) Block the caller until a message is available. |
| VIVOXSDK_DLLEXPORT int | vx_set_out_of_process_server_address(const char * address, unsigned short port) Set the default out of process server address. |
Functions Documentation
function vx_get_message
The VxSDK polling function. Parameters:VIVOXSDK_DLLEXPORT int vx_get_message( vx_message_base_t ** message)
- message [out] The object containing the message data.
function vx_issue_request
Parameters:VIVOXSDK_DLLEXPORT int vx_issue_request( vx_req_base_t * request)
- request The request object to execute. This is of one of the vx_req_* structs.
function vx_issue_request2
Execute the given request. Parameters:VIVOXSDK_DLLEXPORT int vx_issue_request2( vx_req_base_t * request)
- request The request object to execute. This is of one of the vx_req_* structs.
function vx_issue_request3
Execute the given request. Parameters:VIVOXSDK_DLLEXPORT int vx_issue_request3( vx_req_base_t * request, int * request_count)
- request The request object to execute. This is of one of the vx_req_* structs.
- request_count If non-null, vx_issue_request3 outputs the number of requests that are still outstanding. Requests at a rate of 12 requests per second - an application can use this value to determine if the application is issuing requests at an unacceptable rate.
function vx_register_message_notification_handler
Register a callback that is called when a message is placed in the queue. The application should use this to signal the main application thread that will then wakeup and call vx_get_message;VIVOXSDK_DLLEXPORT int vx_register_message_notification_handler( void(*)(void *) pf_handler, void * cookie)
function vx_unregister_message_notification_handler
Unregister a notification handler.VIVOXSDK_DLLEXPORT int vx_unregister_message_notification_handler( void(*)(void *) pf_handler, void * cookie)
function vx_wait_for_message
Block the caller until a message is available. Returns NULL if no message was available within the allotted time.VIVOXSDK_DLLEXPORT vx_message_base_t * vx_wait_for_message( int msTimeout)
function vx_set_out_of_process_server_address
Set the default out of process server address. Parameters:VIVOXSDK_DLLEXPORT int vx_set_out_of_process_server_address( const char * address, unsigned short port)
- address - The address of the out of process server. Use "127.0.0.1" for most applications.
- port - port - Use 44125 for most applications.