s/qmail 4.3.20
Next generation secure email transport
Loading...
Searching...
No Matches
tcpto.h
Go to the documentation of this file.
1#ifndef TCPTO_H
2#define TCPTO_H
3#include "ipalloc.h"
4
5#define TCPTO_BUFSIZ 1024
6
7/* persistency structure: record
8struct tcpto {
9 unsigned char af; -- 1 byte -- IPv4: x'2' / IPv6: x'a' (10)
10 unsigned char nul[3]; -- 3 byte
11 unsigned char errorcount -- 1 byte -- if err_timeout || err_conrefused || err_proto (TLS)
12 unsigned char nul[3]; -- 3 byte
13 unsigned long when; -- 8 byte
14 union {
15 struct ip_address ip;
16 struct ip6_address ip6;
17 unsigned char nul[16]; -- 16 byte -- IPv4: filled up with '.' = x'2e'
18 } addr;
19}; total: 32 byte
20*/
21
22int tcpto(struct ip_mx *);
23void tcpto_err(struct ip_mx *, int);
24void tcpto_clean();
25
26#endif
Definition: ipalloc.h:8
void tcpto_err(struct ip_mx *, int)
Definition: tcpto.c:82
void tcpto_clean()
Definition: tcpto_clean.c:9
int tcpto(struct ip_mx *)
Definition: tcpto.c:42