Go to the source code of this file.
|
as_status | as_info_command (as_error *err, int fd, char *names, bool send_asis, uint64_t deadline_ms, uint64_t max_response_length, char **values) |
|
as_status | as_info_command_host (as_cluster *cluster, as_error *err, struct sockaddr_in *sa_in, char *command, bool send_asis, uint64_t deadline_ms, char **response) |
|
as_status | as_info_command_node (as_error *err, as_node *node, char *command, bool send_asis, uint64_t deadline_ms, char **response) |
|
as_status | as_info_create_socket (as_cluster *cluster, as_error *err, struct sockaddr_in *sa_in, uint64_t deadline_ms, int *fd_out) |
|
void | as_info_parse_multi_response (char *buf, as_vector *values) |
|
as_status | as_info_parse_single_response (char *values, char **value) |
|
as_status as_info_command |
( |
as_error * |
err, |
|
|
int |
fd, |
|
|
char * |
names, |
|
|
bool |
send_asis, |
|
|
uint64_t |
deadline_ms, |
|
|
uint64_t |
max_response_length, |
|
|
char ** |
values |
|
) |
| |
|
private |
Send info command to specific socket. The values must be freed by the caller on success. Set max_response_length to zero if response size should not be bounded.
as_status as_info_command_host |
( |
as_cluster * |
cluster, |
|
|
as_error * |
err, |
|
|
struct sockaddr_in * |
sa_in, |
|
|
char * |
command, |
|
|
bool |
send_asis, |
|
|
uint64_t |
deadline_ms, |
|
|
char ** |
response |
|
) |
| |
|
private |
Send info command to specific host. The values must be freed by the caller on success.
as_status as_info_command_node |
( |
as_error * |
err, |
|
|
as_node * |
node, |
|
|
char * |
command, |
|
|
bool |
send_asis, |
|
|
uint64_t |
deadline_ms, |
|
|
char ** |
response |
|
) |
| |
|
private |
Send info command to specific node. The values must be freed by the caller on success.
as_status as_info_create_socket |
( |
as_cluster * |
cluster, |
|
|
as_error * |
err, |
|
|
struct sockaddr_in * |
sa_in, |
|
|
uint64_t |
deadline_ms, |
|
|
int * |
fd_out |
|
) |
| |
|
private |
Create and authenticate socket for info requests.
void as_info_parse_multi_response |
( |
char * |
buf, |
|
|
as_vector * |
values |
|
) |
| |
|
private |
Parse info response buffer into name/value pairs, one for each command. The original buffer will be modified with null termination characters to delimit each command name and value referenced by the name/value pairs.
as_status as_info_parse_single_response |
( |
char * |
values, |
|
|
char ** |
value |
|
) |
| |
|
private |
Return the single command's info response buffer value. The original buffer will be modified with the null termination character.