summaryrefslogtreecommitdiff
path: root/src/include/tcpto.h
blob: 678d12a93c516837b44774c5a4c0b6043a608f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TCPTO_H
#define TCPTO_H

#define TCPTO_BUFSIZ 1024

/* persistency structure: record 
struct tcpto {    
  unsigned char af;        --  1 byte -- IPv4: x'2' / IPv6: x'a' (10)
  unsigned char nul[3];    --  3 byte
  unsigned char errorcount --  1 byte -- if err_timeout || err_conrefused || err_proto (TLS)
  unsigned char nul[3];    --  3 byte
  unsigned long when;      --  8 byte    
  union {
    struct ip_address ip;
    struct ip6_address ip6;
    unsigned char nul[16];  -- 16 byte -- IPv4: filled up with '.' = x'2e'
  } addr;    
};               total:       32 byte
*/

int tcpto();
void tcpto_err();
void tcpto_clean();

#endif