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

Implements the Listener class. class - for listening for incoming FrameSets. More...

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

Go to the source code of this file.

Macros

#define ONESEC   1000000
 

Functions

void _listener_finalize (AssimObj *aself)
 Finalize a Listener. More...
 
FSTATIC gboolean _listener_got_frameset (Listener *self, FrameSet *fs, NetAddr *addr)
 (not very useful) Function called when a Frame class arrived from the given NetAddr class More...
 
FSTATIC void _listener_associate (Listener *self, NetGSource *source)
 Associate the given NetGSource with this Listener class.. More...
 
FSTATIC void _listener_dissociate (Listener *self)
 Associate the current NetGSource from this Listener class.. More...
 
Listenerlistener_new (ConfigContext *config, gsize objsize)
 Construct a new Listener - setting up GSource and timeout data structures for it. More...
 

Detailed Description

Implements the Listener class. class - for listening for incoming FrameSets.

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 listener.c.