Initial submission of GSSDP to Tizen IVI
[profile/ivi/GSSDP.git] / libgssdp / gssdp-socket-functions.h
1 /*
2  * Copyright (C) 2010 Jens Georg <mail@jensge.org>
3  *
4  * Author: Jens Georg <mail@jensge.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GSSDP_SOCKET_FUNCTIONS_H
23 #define __GSSDP_SOCKET_FUNCTIONS_H
24
25 #include <gio/gio.h>
26
27 G_GNUC_INTERNAL gboolean
28 gssdp_socket_enable_loop         (GSocket       *socket,
29                                   gboolean       enable,
30                                   GError       **error);
31 G_GNUC_INTERNAL gboolean
32 gssdp_socket_set_ttl             (GSocket       *socket,
33                                   int            ttl,
34                                   GError       **error);
35 G_GNUC_INTERNAL gboolean
36 gssdp_socket_enable_broadcast    (GSocket       *socket,
37                                   gboolean       enable,
38                                   GError       **error);
39 G_GNUC_INTERNAL gboolean
40 gssdp_socket_mcast_interface_set (GSocket       *socket,
41                                   GInetAddress  *iface_address,
42                                   GError       **error);
43 G_GNUC_INTERNAL gboolean
44 gssdp_socket_mcast_group_join    (GSocket       *socket,
45                                   GInetAddress  *group,
46                                   GInetAddress  *iface,
47                                   GError       **error);
48 G_GNUC_INTERNAL gboolean
49 gssdp_socket_reuse_address       (GSocket *socket,
50                                   gboolean enable,
51                                   GError **error);
52 #endif