mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 08:04:22 +08:00
5c338112e4
This updates message bound test making it more complex. Instead of sending 1 bytes messages with one MSG_EOR bit, it sends messages of random length(one half of messages are smaller than page size, second half are bigger) with random number of MSG_EOR bits set. Receiver also don't know total number of messages. Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
18 lines
495 B
C
18 lines
495 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef CONTROL_H
|
|
#define CONTROL_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
void control_init(const char *control_host, const char *control_port,
|
|
bool server);
|
|
void control_cleanup(void);
|
|
void control_writeln(const char *str);
|
|
char *control_readln(void);
|
|
unsigned long control_readulong(void);
|
|
void control_expectln(const char *str);
|
|
bool control_cmpln(char *line, const char *str, bool fail);
|
|
void control_writeulong(unsigned long value);
|
|
|
|
#endif /* CONTROL_H */
|