summaryrefslogtreecommitdiff
path: root/roaming.h
diff options
context:
space:
mode:
Diffstat (limited to 'roaming.h')
-rw-r--r--roaming.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/roaming.h b/roaming.h
new file mode 100644
index 000000000..e517161f6
--- /dev/null
+++ b/roaming.h
@@ -0,0 +1,38 @@
1/* $OpenBSD: roaming.h,v 1.4 2009/06/27 09:32:43 andreas Exp $ */
2/*
3 * Copyright (c) 2004-2009 AppGate Network Security AB
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */
17
18#ifndef ROAMING_H
19#define ROAMING_H
20
21#define DEFAULT_ROAMBUF 65536
22
23extern int resume_in_progress;
24
25int get_snd_buf_size(void);
26int get_recv_buf_size(void);
27void add_recv_bytes(u_int64_t);
28void set_out_buffer_size(size_t);
29ssize_t roaming_write(int, const void *, size_t, int *);
30ssize_t roaming_read(int, void *, size_t, int *);
31size_t roaming_atomicio(ssize_t (*)(int, void *, size_t), int, void *, size_t);
32u_int64_t get_recv_bytes(void);
33u_int64_t get_sent_bytes(void);
34void roam_set_bytes(u_int64_t, u_int64_t);
35void resend_bytes(int, u_int64_t *);
36int resume_kex(void);
37
38#endif /* ROAMING */