diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-25 11:18:03 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-02-12 19:27:21 +0100 |
commit | 81e0d7d65a55be7df908567da622e1e2f249ceec (patch) | |
tree | e1c71557d865f7bcc2a6495200f8d74e3264bb7f /src/connection.h | |
parent | 269297401c5b63f3f462a66b2e7652e726ad605a (diff) | |
download | cmumble-81e0d7d65a55be7df908567da622e1e2f249ceec.tar.gz cmumble-81e0d7d65a55be7df908567da622e1e2f249ceec.tar.bz2 cmumble-81e0d7d65a55be7df908567da622e1e2f249ceec.zip |
Add support for transporting audio data using udpudp-3
With crypt.c importet from umurmur, changed encrypt key
to use raw_key instead of decrypt_iv.
Diffstat (limited to 'src/connection.h')
-rw-r--r-- | src/connection.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/connection.h b/src/connection.h index 508a71c..7696d07 100644 --- a/src/connection.h +++ b/src/connection.h @@ -12,6 +12,12 @@ struct cmumble_connection { GOutputStream *output; GSource *source; + + struct { + GSocket *sock; + gboolean connected; + GSource *source; + } udp; }; struct cmumlbe; @@ -23,4 +29,11 @@ cmumble_connection_init(struct cmumlbe *cm, int cmumble_connection_fini(struct cmumlbe *cm); +void +cmumble_connection_udp_init(struct cmumlbe *cm); + +void +cmumble_connection_send_udp_data(struct cmumlbe *cm, + guint8 *data, gsize len); + #endif /* _CONNECTION_H_ */ |