Qsmtp  0.37
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
targetport
unsigned int targetport
Definition: conn.c:24
tryconn
int tryconn(struct ips *mx, const struct in6_addr *outip4, const struct in6_addr *outip6)
Definition: conn.c:109
ips
list of IP addresses for a given host
Definition: qdns.h:29
getmxlist
void getmxlist(char *, struct ips **)
Definition: conn.c:160
connect_mx
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
qdns.h
headers of functions for DNS lookups