src/proxy.h

changeset 11428
b3a4026f2811
parent 11211
d14c774320ec
child 12323
f52908fb23b0
equal deleted inserted replaced
11427:a296ad5cbe7a 11428:b3a4026f2811
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

mercurial