-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The vPoller C client now supports all methods methods as the Python
client does
- Loading branch information
Showing
2 changed files
with
102 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
#ifndef _VPOLLER_CCLIENT_H_ | ||
#define _VPOLLER_CCLIENT_H_ | ||
|
||
#define DEFAULT_TIMEOUT 3000 /* Timeout is in msec */ | ||
#define VERSION "0.3.9-dev" | ||
#define MAX_TASK_MESSAGE 8192 /* Max size of the task message */ | ||
#define DEFAULT_TIMEOUT 10000 /* Timeout is in msec */ | ||
#define DEFAULT_RETRIES 3 /* Number of retries before giving up */ | ||
#define DEFAULT_ENDPOINT "tcp://localhost:10123" /* Default endpoint we connect to */ | ||
|
||
typedef enum { | ||
PARAM_METHOD = 0, | ||
PARAM_HOSTNAME, | ||
PARAM_NAME, | ||
PARAM_PROPERTIES, | ||
PARAM_KEY, | ||
PARAM_USERNAME, | ||
PARAM_PASSWORD, | ||
PARAM_COUNTER_ID, | ||
PARAM_INSTANCE, | ||
PARAM_PERF_INTERVAL, | ||
PARAM_MAX_SAMPLE, | ||
PARAM_HELPER, | ||
PARAM_NUM, | ||
} task_params; | ||
|
||
void usage(void); | ||
|
||
#endif /* !_VPOLLER_CCLIENT_H_ */ |