2011-05-14 17:59:08 +00:00
|
|
|
#ifndef TEST_H
|
|
|
|
# define TEST_H
|
2011-05-14 00:18:01 +00:00
|
|
|
|
|
|
|
# define RECV_BUF_SIZE 8 * 1024
|
|
|
|
# define CONT_BUF_SIZE 8 * 1024
|
|
|
|
# define SEND_BUF_SIZE 8 * 1024
|
|
|
|
# define NUM_PARSERS 100
|
|
|
|
|
|
|
|
void test_init(int i);
|
2011-05-14 16:21:00 +00:00
|
|
|
int test_input(int i, char *recvbuf, size_t nbytes);
|
2011-05-14 17:59:08 +00:00
|
|
|
|
2011-05-15 19:12:17 +00:00
|
|
|
void test_file(const char* filename, size_t count, size_t recv_buf_size);
|
|
|
|
void test_server(const char* port, size_t count, size_t recv_buf_size);
|
|
|
|
void check_range(char c, const char *s, int min, int max);
|
2011-05-14 00:18:01 +00:00
|
|
|
|
|
|
|
#endif
|