src/sslconn.h

changeset 6764
a3f8025c0631
parent 6762
2349053f14aa
child 6770
5437edb4b2a8
equal deleted inserted replaced
6763:8d044f09f522 6764:a3f8025c0631
34 34
35 struct _GaimSslConnection 35 struct _GaimSslConnection
36 { 36 {
37 char *host; 37 char *host;
38 int port; 38 int port;
39 void *user_data; 39 void *connect_cb_data;
40 GaimSslInputFunction input_func; 40 GaimSslInputFunction connect_cb;
41 void *recv_cb_data;
42 GaimSslInputFunction recv_cb;
41 43
42 int fd; 44 int fd;
43 int inpa; 45 int inpa;
44 46
45 void *private_data; 47 void *private_data;
88 * 90 *
89 * @return The SSL connection handle. 91 * @return The SSL connection handle.
90 */ 92 */
91 GaimSslConnection *gaim_ssl_connect(GaimAccount *account, const char *host, 93 GaimSslConnection *gaim_ssl_connect(GaimAccount *account, const char *host,
92 int port, GaimSslInputFunction func, 94 int port, GaimSslInputFunction func,
95 void *data);
96
97 /**
98 * Adds an input watcher for the specified SSL connection.
99 *
100 * @param gsc The SSL connection handle.
101 * @param func The callback function.
102 * @param data User-defined data.
103 */
104 void gaim_ssl_input_add(GaimSslConnection *gsc, GaimSslInputFunction func,
93 void *data); 105 void *data);
94 106
95 /** 107 /**
96 * Makes a SSL connection using an already open file descriptor. 108 * Makes a SSL connection using an already open file descriptor.
97 * 109 *

mercurial