The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hbsender.c File Reference

Implements the HbSender class. class - for sending heartbeats. More...

#include <memory.h>
#include <glib.h>
#include <frameset.h>
#include <frame.h>
#include <hbsender.h>
Include dependency graph for hbsender.c:

Go to the source code of this file.

Macros

#define ONESEC   1000000
 

Functions

FSTATIC void _hbsender_notify_function (gpointer data)
 
FSTATIC void _hbsender_finalize (HbSender *self)
 Finalize an HbSender. More...
 
FSTATIC void _hbsender_ref (HbSender *self)
 Increment the reference count by one. More...
 
FSTATIC void _hbsender_unref (HbSender *self)
 Decrement the reference count by one - possibly freeing up the object. More...
 
FSTATIC void _hbsender_addlist (HbSender *self)
 Add an HbSender to our global list of HbSenders. More...
 
FSTATIC void _hbsender_dellist (HbSender *self)
 Remove an HbSender from our global list of HbSenders. More...
 
FSTATIC void _hbsender_sendheartbeat (HbSender *self)
 
FSTATIC gboolean _hbsender_gsourcefunc (gpointer gself)
 A GSourceFunc to be used with g_timeout_add_seconds() More...
 
HbSenderhbsender_new (NetAddr *sendaddr, NetGSource *outmethod, guint interval, gsize objsize)
 Construct a new HbSender - setting up timeout data structures for it. More...
 
void hbsender_stopsend (NetAddr *sendaddr)
 Stop sending heartbeats to a particular address. More...
 
void hbsender_stopallsenders (void)
 

Detailed Description

Implements the HbSender class. class - for sending heartbeats.

We are told what addresses to send to, and how often to send them.

This file is part of the Assimilation Project.

Author
Copyright © 2011, 2012 - Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh
The Assimilation software is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file hbsender.c.