Move stream file rotation functions to utils
[lttng-tools.git] / src / common / sessiond-comm / inet.h
CommitLineData
6364a07a
DG
1/*
2 * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18#ifndef _LTTCOMM_INET_H
19#define _LTTCOMM_INET_H
20
21#define _GNU_SOURCE
22#include <limits.h>
23
24#include "sessiond-comm.h"
25
26/* Stub */
27struct lttcomm_sock;
28
29/* Net family callback */
30extern int lttcomm_create_inet_sock(struct lttcomm_sock *sock, int type,
31 int proto);
32
33extern struct lttcomm_sock *lttcomm_accept_inet_sock(struct lttcomm_sock *sock);
34extern int lttcomm_bind_inet_sock(struct lttcomm_sock *sock);
35extern int lttcomm_close_inet_sock(struct lttcomm_sock *sock);
36extern int lttcomm_connect_inet_sock(struct lttcomm_sock *sock);
37extern int lttcomm_listen_inet_sock(struct lttcomm_sock *sock, int backlog);
38
39extern ssize_t lttcomm_recvmsg_inet_sock(struct lttcomm_sock *sock, void *buf,
40 size_t len, int flags);
41extern ssize_t lttcomm_sendmsg_inet_sock(struct lttcomm_sock *sock, void *buf,
42 size_t len, int flags);
43
44#endif /* _LTTCOMM_INET_H */
This page took 0.036412 seconds and 4 git commands to generate.