~ubuntu-branches/debian/jessie/tsdecrypt/jessie

« back to all changes in this revision

Viewing changes to libfuncs/asyncdns.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-04-04 09:42:43 UTC
  • Revision ID: package-import@ubuntu.com-20120404094243-qsc40h18oolnxw5r
Tags: upstream-7.0
ImportĀ upstreamĀ versionĀ 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Async DNS resolver
 
3
 * Copyright (C) 2009-2010 Unix Solutions Ltd.
 
4
 *
 
5
 * Released under MIT license.
 
6
 * See LICENSE-MIT.txt for license terms.
 
7
 */
 
8
 
 
9
#ifndef ASYNCDNS_H
 
10
# define ASYNCDNS_H
 
11
 
 
12
#include <arpa/inet.h>
 
13
#include <netinet/in.h>
 
14
#include <sys/socket.h>
 
15
 
 
16
// Returns
 
17
//   0 on success
 
18
//   1 on error
 
19
//   2 on timeout
 
20
int async_resolve_host(char *host, int port, struct sockaddr_in *sockaddr, int msec_timeout, int *active);
 
21
 
 
22
#endif