comparison src/proxy.h @ 11428:c39a48818f66

[gaim-migrate @ 13665] exporting async gethostbyname committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Fri, 02 Sep 2005 19:47:18 +0000
parents 03a244acce57
children fc464a0abccc
comparison
equal deleted inserted replaced
11427:e2ebebcae270 11428:c39a48818f66
226 * @return Zero indicates the connection is pending. Any other value indicates failure. 226 * @return Zero indicates the connection is pending. Any other value indicates failure.
227 */ 227 */
228 int gaim_proxy_connect_socks5(GaimProxyInfo *gpi, const char *host, int port, 228 int gaim_proxy_connect_socks5(GaimProxyInfo *gpi, const char *host, int port,
229 GaimInputFunction func, gpointer data); 229 GaimInputFunction func, gpointer data);
230 230
231 typedef void (*dns_callback_t)(GSList *hosts, gpointer data,
232 const char *error_message);
233 /**
234 * Do an async dns query
235 *
236 * @param hostname The hostname to resolve
237 * @param port A portnumber which is stored in the struct sockaddr
238 * @param callback Callback to call after resolving
239 * @param data Extra data for the callback function
240 * @return a GSList containing the size of followed by the struct sockaddr for any returned IP
241 */
242 int gaim_gethostbyname_async(const char *hostname, int port, dns_callback_t callback, gpointer data);
243
231 /*@}*/ 244 /*@}*/
232 245
233 #ifdef __cplusplus 246 #ifdef __cplusplus
234 } 247 }
235 #endif 248 #endif