The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hbsender.h
Go to the documentation of this file.
1 
26 #ifndef _HBSENDER_H
27 #define _HBSENDER_H
28 #include <projectcommon.h>
29 #include <netaddr.h>
30 #include <netio.h>
31 #include <netgsource.h>
32 typedef struct _HbSender HbSender;
33 
36 
39 struct _HbSender {
40  void (*ref)(HbSender*);
41  void (*unref)(HbSender*);
42  void (*_finalize)(HbSender*);
46  int _refcount;
48 };
49 #define DEFAULT_DEADTIME 60 // seconds
50 
51 WINEXPORT HbSender* hbsender_new(NetAddr*, NetGSource*, guint interval, gsize hblisten_objsize);
52 WINEXPORT void hbsender_stopsend(NetAddr* unlistenaddr);
54 
56 
57 #endif /* _HBSENDER */