Revision 5f3adef4 ALTOclient/ALTOclient.h

View differences:

ALTOclient/ALTOclient.h
42 42
#define ALTO_QUERY_READY		0
43 43
#define ALTO_QUERY_INPROGRESS	1
44 44

  
45
/** Maximum server response time in seconds */ 
46
#define ALTO_TIMEOUT	20
47

  
48
/**
49
 * Return codes of ALTO_query_exec.
50
 * ALTO_QUERY_EXEC_TIMEOUT means the last query timed out, but the new query started fine. 
51
 */
52
#define ALTO_QUERY_EXEC_OK			0
53
#define ALTO_QUERY_EXEC_INPROGRESS	1
54
#define ALTO_QUERY_EXEC_THREAD_FAIL	2
55
#define ALTO_QUERY_EXEC_TIMEOUT		3
56

  
57
/** statistics IDs for ALTO_stats */
58
#define ALTO_STAT_FAILURE_COUNT			0
59
#define ALTO_STAT_FAILURE_COUNT_TOTAL	1
60

  
61 45
/**
62 46
 * This is the struct of one element for the internal interface. Make lists out of it to interact with the client.
63 47
 */
......
158 142
int get_ALTO_guidance_for_list(ALTO_GUIDANCE_T * list, int num, struct in_addr rc_host, int pri_rat, int sec_rat);
159 143

  
160 144
/**
161
 *	Asynchronous/threaded ALTO query. Return codes are ALTO_QUERY_EXEC_* (see defines above).
162
 *  ALTO_QUERY_EXEC_TIMEOUT means last query timed out, but the new query started fine.
145
 *	Asynchronous/threaded ALTO query.
163 146
 *	@see get_ALTO_guidance_for_list
164 147
 */
165 148
int ALTO_query_exec(ALTO_GUIDANCE_T * list, int num, struct in_addr rc_host, int pri_rat, int sec_rat);
......
170 153
 */
171 154
int ALTO_query_state();
172 155

  
173
/**
174
 *  Returns statistics value for the given ALTO_STAT_* ID. 
175
 *  @return requested statistics value.
176
 */
177
int ALTO_stats(int stats_id);
178

  
179 156
#endif /* ALTOCLIENT_H */

Also available in: Unified diff