#ifndef _CONNECTION_H_ #define _CONNECTION_H_ #include struct cmumble_connection { GSocketClient *sock_client; GSocketConnection *conn; GSocket *sock; GPollableInputStream *input; GOutputStream *output; GSource *source; struct { GSocket *sock; gboolean connected; GSource *source; } udp; }; struct cmumlbe; int cmumble_connection_init(struct cmumlbe *cm, const char *host, int port); 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_ */