914f08184a816a99995a16b7cf3c4a4243fdbc62
[platform/upstream/libnice.git] / socket / tcp-passive.h
1 /*
2  * This file is part of the Nice GLib ICE library.
3  *
4  * (C) 2008-2012 Collabora Ltd.
5  *  Contact: Youness Alaoui
6  * (C) 2008-2009 Nokia Corporation. All rights reserved.
7  *
8  * The contents of this file are subject to the Mozilla Public License Version
9  * 1.1 (the "License"); you may not use this file except in compliance with
10  * the License. You may obtain a copy of the License at
11  * http://www.mozilla.org/MPL/
12  *
13  * Software distributed under the License is distributed on an "AS IS" basis,
14  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
15  * for the specific language governing rights and limitations under the
16  * License.
17  *
18  * The Original Code is the Nice GLib ICE library.
19  *
20  * The Initial Developers of the Original Code are Collabora Ltd and Nokia
21  * Corporation. All Rights Reserved.
22  *
23  * Contributors:
24  *   Youness Alaoui, Collabora Ltd.
25  *   George Kiagiadakis, Collabora Ltd.
26  *
27  * Alternatively, the contents of this file may be used under the terms of the
28  * the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which
29  * case the provisions of LGPL are applicable instead of those above. If you
30  * wish to allow use of your version of this file only under the terms of the
31  * LGPL and not to allow others to use your version of this file under the
32  * MPL, indicate your decision by deleting the provisions above and replace
33  * them with the notice and other provisions required by the LGPL. If you do
34  * not delete the provisions above, a recipient may use your version of this
35  * file under either the MPL or the LGPL.
36  */
37
38 #ifndef _TCP_PASSIVE_H
39 #define _TCP_PASSIVE_H
40
41 #include "socket.h"
42
43 G_BEGIN_DECLS
44
45
46 NiceSocket * nice_tcp_passive_socket_new (GMainContext *ctx, NiceAddress *addr);
47 NiceSocket * nice_tcp_passive_socket_accept (NiceSocket *socket);
48
49 void nice_tcp_passive_socket_remove_connection (NiceSocket *socket,
50     const NiceAddress *to);
51
52
53 G_END_DECLS
54
55 #endif /* _TCP_PASSIVE_H */
56