]> git.ipfire.org Git - people/stevee/aiccu.git/blob - common/heartbeat.h
spelling error
[people/stevee/aiccu.git] / common / heartbeat.h
1 /**********************************************************
2 SixXS - Automatic IPv6 Connectivity Configuration Utility
3 ***********************************************************
4 Copyright 2003-2005 SixXS - http://www.sixxs.net
5 ***********************************************************
6 common/heartbeat.h - Heartbeat Definitions
7 ***********************************************************
8 $Author: jeroen $
9 $Id: heartbeat.h,v 1.6 2006-12-21 14:08:50 jeroen Exp $
10 $Date: 2006-12-21 14:08:50 $
11 **********************************************************/
12
13 #ifndef HEARTBEAT_H
14 #define HEARTBEAT_H "H5K7:W3NDY5UU5N1K1N1C0l3"
15
16 #include "common.h"
17 #include "tic.h"
18
19 /*
20 * SixXS Heartbeat Protocol
21 * port - uses UDP over IPv4
22 */
23 #define HEARTBEAT_PORT "3740"
24
25 SOCKET heartbeat_socket(
26 uint32_t *address_changed,
27 int bStaticTunnel,
28 const char *sIPv4Interface,
29 char **sIPv4Local,
30 const char *sIPv4POP,
31 const char *sIPv4LocalResolve);
32
33 int heartbeat_send(SOCKET sockfd, char *sIPv4Local, char *sIPv6Local, char *sPassword, bool bBehindNAT);
34
35 void heartbeat_beat(struct TIC_Tunnel *hTunnel);
36 char *heartbeat_getlocalIP(struct TIC_Tunnel *hTunnel);
37
38 #endif /* HEARTBEAT_H */
39