mptcpd
Multipath TCP Daemon
listener_manager.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef MPTCPD_LISTENER_MANAGER_H
11 #define MPTCPD_LISTENER_MANAGER_H
12 
13 #include <stdbool.h>
14 
15 #include <mptcpd/export.h>
16 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 struct mptcpd_lm;
23 struct sockaddr;
24 
41 MPTCPD_API int mptcpd_lm_listen(struct mptcpd_lm *lm,
42  struct sockaddr *sa);
43 
55 MPTCPD_API int mptcpd_lm_close(struct mptcpd_lm *lm,
56  struct sockaddr const *sa);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 
63 #endif /* MPTCPD_LISTENER_MANAGER_H */
64 
65 
66 /*
67  Local Variables:
68  c-file-style: "linux"
69  End:
70 */
mptcpd shared library symbol export/import macros.
MPTCPD_API int mptcpd_lm_listen(struct mptcpd_lm *lm, struct sockaddr *sa)
Listen on the given MPTCP local address.
Definition: listener_manager.c:402
MPTCPD_API int mptcpd_lm_close(struct mptcpd_lm *lm, struct sockaddr const *sa)
Stop listening on a MPTCP local address.
Definition: listener_manager.c:435
Internal mptcpd listern manager data.
Definition: listener_manager.c:49