File: utils_tcp.h

package info (click to toggle)
monitoring-plugins 2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,788 kB
  • sloc: ansic: 60,015; sh: 13,872; perl: 6,291; makefile: 477
file content (22 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Header file for utils_tcp */

#define NP_MATCH_ALL            0x1
#define NP_MATCH_EXACT          0x2
#define NP_MATCH_VERBOSE        0x4

/*
 * The NP_MATCH_RETRY state indicates that matching might succeed if
 * np_expect_match() is called with a longer input string.  This allows the
 * caller to decide whether it makes sense to wait for additional data from the
 * server.
 */
enum np_match_result {
	NP_MATCH_FAILURE,
	NP_MATCH_SUCCESS,
	NP_MATCH_RETRY
};

enum np_match_result np_expect_match(char *status,
                                     char **server_expect,
                                     int server_expect_count,
                                     int flags);