| 54 char *username; /**< The username. */ |
55 char *username; /**< The username. */ |
| 55 char *password; /**< The password. */ |
56 char *password; /**< The password. */ |
| 56 |
57 |
| 57 } GaimProxyInfo; |
58 } GaimProxyInfo; |
| 58 |
59 |
| |
60 typedef struct _GaimDnsQueryData GaimDnsQueryData; |
| 59 typedef struct _GaimProxyConnectInfo GaimProxyConnectInfo; |
61 typedef struct _GaimProxyConnectInfo GaimProxyConnectInfo; |
| 60 |
62 |
| 61 typedef void (*GaimProxyConnectFunction)(gpointer data, gint source, const gchar *error_message); |
63 typedef void (*GaimProxyConnectFunction)(gpointer data, gint source, const gchar *error_message); |
| 62 |
64 |
| 63 /** |
65 /** |
| 276 * attempt early rather than just letting the OS's TCP/IP stack |
278 * attempt early rather than just letting the OS's TCP/IP stack |
| 277 * time-out the connection. |
279 * time-out the connection. |
| 278 */ |
280 */ |
| 279 void gaim_proxy_connect_cancel(GaimProxyConnectInfo *connect_info); |
281 void gaim_proxy_connect_cancel(GaimProxyConnectInfo *connect_info); |
| 280 |
282 |
| 281 /** |
|
| 282 * Do an async dns query |
|
| 283 * |
|
| 284 * @param hostname The hostname to resolve |
|
| 285 * @param port A portnumber which is stored in the struct sockaddr |
|
| 286 * @param callback Callback to call after resolving |
|
| 287 * @param data Extra data for the callback function |
|
| 288 * |
|
| 289 * @return Zero indicates the connection is pending. Any other value indicates failure. |
|
| 290 */ |
|
| 291 int gaim_gethostbyname_async(const char *hostname, int port, GaimProxyDnsConnectFunction callback, gpointer data); |
|
| 292 |
|
| 293 /*@}*/ |
283 /*@}*/ |
| 294 |
284 |
| 295 #ifdef __cplusplus |
285 #ifdef __cplusplus |
| 296 } |
286 } |
| 297 #endif |
287 #endif |