|
zacw@2069
|
1 |
/** |
|
zacw@2069
|
2 |
* @file bosh.h Bidirectional-streams over Synchronous HTTP (BOSH) (XEP-0124 and XEP-0206) |
|
zacw@2069
|
3 |
* |
|
zacw@2069
|
4 |
* purple |
|
zacw@2069
|
5 |
* |
|
zacw@2069
|
6 |
* Copyright (C) 2008, Tobias Markmann <tmarkmann@googlemail.com> |
|
zacw@2069
|
7 |
* |
|
zacw@2069
|
8 |
* This program is free software; you can redistribute it and/or modify |
|
zacw@2069
|
9 |
* it under the terms of the GNU General Public License as published by |
|
zacw@2069
|
10 |
* the Free Software Foundation; either version 2 of the License, or |
|
zacw@2069
|
11 |
* (at your option) any later version. |
|
zacw@2069
|
12 |
* |
|
zacw@2069
|
13 |
* This program is distributed in the hope that it will be useful, |
|
zacw@2069
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
zacw@2069
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
zacw@2069
|
16 |
* GNU General Public License for more details. |
|
zacw@2069
|
17 |
* |
|
zacw@2069
|
18 |
* You should have received a copy of the GNU General Public License |
|
zacw@2069
|
19 |
* along with this program; if not, write to the Free Software |
|
zacw@2069
|
20 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
zacw@2069
|
21 |
*/ |
|
zacw@2069
|
22 |
#ifndef PURPLE_JABBER_BOSH_H_ |
|
zacw@2069
|
23 |
#define PURPLE_JABBER_BOSH_H_ |
|
zacw@2069
|
24 |
|
|
zacw@2069
|
25 |
typedef struct _PurpleBOSHConnection PurpleBOSHConnection; |
|
zacw@2069
|
26 |
|
|
zacw@2069
|
27 |
#include "jabber.h" |
|
zacw@2069
|
28 |
|
|
zacw@2069
|
29 |
void jabber_bosh_init(void); |
|
zacw@2069
|
30 |
void jabber_bosh_uninit(void); |
|
zacw@2069
|
31 |
|
|
zacw@2069
|
32 |
PurpleBOSHConnection* jabber_bosh_connection_init(JabberStream *js, const char *url); |
|
zacw@2069
|
33 |
void jabber_bosh_connection_destroy(PurpleBOSHConnection *conn); |
|
zacw@2069
|
34 |
|
|
zacw@2069
|
35 |
gboolean jabber_bosh_connection_is_ssl(PurpleBOSHConnection *conn); |
|
zacw@2069
|
36 |
|
|
zacw@2069
|
37 |
void jabber_bosh_connection_connect(PurpleBOSHConnection *conn); |
|
zacw@2069
|
38 |
void jabber_bosh_connection_close(PurpleBOSHConnection *conn); |
|
zacw@2069
|
39 |
void jabber_bosh_connection_send_raw(PurpleBOSHConnection *conn, const char *data); |
|
zacw@2069
|
40 |
#endif /* PURPLE_JABBER_BOSH_H_ */ |