summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-raw.h
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-02-10 20:22:13 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-02-10 20:22:13 +0100
commitc2aeb69c46a8f0222aed935afc46e0b27cbc94a0 (patch)
treed217e5bfc2dbfe7e0d50dbcd7a0b24b032681441 /src/plugins/relay/relay-raw.h
parenteb11921f1633db940df4b0c02a43df1360d39b96 (diff)
downloadweechat-c2aeb69c46a8f0222aed935afc46e0b27cbc94a0.zip
relay: add experimental websocket server support (RFC 6455) for irc and weechat protocols, new option relay.network.websocket_allowed_origins
It is a partial implementation of RFC 6455: fragmentation and control frames are not yet supported. Text and binary frames are supported.
Diffstat (limited to 'src/plugins/relay/relay-raw.h')
-rw-r--r--src/plugins/relay/relay-raw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-raw.h b/src/plugins/relay/relay-raw.h
index f2b0261f9..4d6f8fae6 100644
--- a/src/plugins/relay/relay-raw.h
+++ b/src/plugins/relay/relay-raw.h
@@ -26,6 +26,7 @@
#define RELAY_RAW_FLAG_RECV 1
#define RELAY_RAW_FLAG_SEND 2
+#define RELAY_RAW_FLAG_BINARY 4
struct t_relay_raw_message
{
@@ -47,7 +48,7 @@ extern struct t_relay_raw_message *relay_raw_message_add_to_list (time_t date,
const char *prefix,
const char *message);
extern void relay_raw_print (struct t_relay_client *client, int flags,
- const char *format, ...);
+ const char *data, int data_size);
extern void relay_raw_message_free_all ();
extern int relay_raw_add_to_infolist (struct t_infolist *infolist,
struct t_relay_raw_message *raw_message);