-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.h
36 lines (31 loc) · 1.83 KB
/
action.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* af_ktls tool
*
* Copyright (C) 2016 Fridolin Pokorny <[email protected]>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*/
#ifndef ACTION_H_
#define ACTION_H_
struct client_opts;
extern int do_send_count(const struct client_opts *opts, int ksd, void *mem, gnutls_session_t session, int flags);
extern int do_send_time(const struct client_opts *opts, int ksd, void *mem, int flags);
extern int do_gnutls_send_count(const struct client_opts *opts, gnutls_session_t session, void *mem);
extern int do_gnutls_send_time(const struct client_opts *opts, gnutls_session_t session, void *mem);
extern int do_splice_count(const struct client_opts *opts, int ksd);
extern int do_splice_time(const struct client_opts *opts, int ksd);
extern int do_splice_echo_time(const struct client_opts *opts, int ksd, void *mem);
extern int do_splice_echo_count(const struct client_opts *opts, int ksd, void *mem);
extern int do_sendfile_mmap(const struct client_opts *opts, gnutls_session_t session);
extern int do_sendfile_user(const struct client_opts *opts, gnutls_session_t session);
extern int do_sendfile(const struct client_opts *opts, int ksd);
extern int do_raw_send_time(const struct client_opts *opts, gnutls_session_t session, int raw_sd, void *mem);
extern int do_splice_send_raw_time(const struct client_opts *opts, int raw_sd, int ksd, void *mem);
extern int do_plain_sendfile_user(const struct client_opts *otps, int sd);
extern int do_plain_sendfile_mmap(const struct client_opts *opts, int sd);
extern int do_plain_splice_emu(const struct client_opts *opts, int sd);
extern int do_plain_sendfile(const struct client_opts *opts, int sd);
#endif // ACTION_H_