Qsmtp  0.30dev
conn.h
Go to the documentation of this file.
1 
4 #ifndef CONN_H
5 #define CONN_H
6 
7 #include <qdns.h>
8 
9 #include <netinet/in.h>
10 
11 extern unsigned int targetport;
13 extern int tryconn(struct ips *mx, const struct in6_addr *outip4, const struct in6_addr *outip6);
14 
28 extern int connect_mx(struct ips *mx, const struct in6_addr *outip4, const struct in6_addr *outip6);
29 extern void getmxlist(char *, struct ips **);
30 
31 #endif
list of IP addresses for a given host
Definition: qdns.h:28
headers of functions for DNS lookups
int connect_mx(struct ips *mx, const struct in6_addr *outip4, const struct in6_addr *outip6)
establish a connection to a MX
Definition: conn_mx.c:51
int tryconn(struct ips *mx, const struct in6_addr *outip4, const struct in6_addr *outip6)
Definition: conn.c:110
void getmxlist(char *, struct ips **)
Definition: conn.c:161
unsigned int targetport
Definition: conn.c:24