Commit | Line | Data |
---|---|---|
6364a07a | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2012 David Goulet <dgoulet@efficios.com> |
6364a07a | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: GPL-2.0-only |
6364a07a | 5 | * |
6364a07a DG |
6 | */ |
7 | ||
8 | #ifndef _LTTCOMM_INET6_H | |
9 | #define _LTTCOMM_INET6_H | |
10 | ||
6364a07a DG |
11 | #include <limits.h> |
12 | ||
13 | #include "sessiond-comm.h" | |
14 | ||
15 | /* Stub */ | |
16 | struct lttcomm_sock; | |
17 | ||
18 | /* Net family callback */ | |
19 | extern int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, | |
20 | int proto); | |
21 | ||
22 | extern struct lttcomm_sock *lttcomm_accept_inet6_sock( | |
23 | struct lttcomm_sock *sock); | |
24 | extern int lttcomm_bind_inet6_sock(struct lttcomm_sock *sock); | |
25 | extern int lttcomm_close_inet6_sock(struct lttcomm_sock *sock); | |
26 | extern int lttcomm_connect_inet6_sock(struct lttcomm_sock *sock); | |
27 | extern int lttcomm_listen_inet6_sock(struct lttcomm_sock *sock, int backlog); | |
28 | ||
29 | extern ssize_t lttcomm_recvmsg_inet6_sock(struct lttcomm_sock *sock, void *buf, | |
30 | size_t len, int flags); | |
c2d69327 JG |
31 | extern ssize_t lttcomm_sendmsg_inet6_sock(struct lttcomm_sock *sock, |
32 | const void *buf, size_t len, int flags); | |
6364a07a DG |
33 | |
34 | #endif /* _LTTCOMM_INET6_H */ |