The dynamic link library must be named ZabbixSender.dll and will export two functions:
int zbx_sender_send_values(const char *address, unsigned short port, const char *source, const zbx_sender_value_t *values, int count, char **result);
Parameters:
- address - the server address
- port - the server port
- source - the soruce ip address (optional)
- values - an array of zabbix sender values
- count - the number of items in values array
- result - the server response or connection error message. The result must be freed with zbx_sender_result_free() function by the caller
Return value: SUCCEED if the data was sent successfully, the result contains server response (failed/succeeded items)
FAIL if the data sending failed, result contains an error message
void zbx_sender_result_free(void *ptr);
Parameters:
- ptr - the result data allocated by zbx_sender_send_values() function