The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Listener class.

Base Listener class - Listen for FrameSets. More...

Collaboration diagram for Listener class.:

Modules

 AuthListener class.
 Class for listening, authenticating, and obeying packets from the Collective Authority.
 
 HbListener class.
 Class for heartbeat Listeners - We listen for heartbeats and time out those which are late.
 

Data Structures

struct  _Listener
 This is the Listener class. object - which generically listens for packets. More...
 

Macros

#define ONESEC   1000000
 

Functions

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...
 
void _listener_finalize (AssimObj *aself)
 Finalize a Listener. 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

Base Listener class - Listen for FrameSets.

Macro Definition Documentation

#define ONESEC   1000000

Definition at line 39 of file listener.c.

Function Documentation

FSTATIC void _listener_associate ( Listener self,
NetGSource source 
)

Associate the given NetGSource with this Listener class..

Definition at line 64 of file listener.c.

Referenced by listener_new().

Here is the caller graph for this function:

FSTATIC void _listener_dissociate ( Listener self)

Associate the current NetGSource from this Listener class..

Definition at line 72 of file listener.c.

Referenced by listener_new().

Here is the caller graph for this function:

void _listener_finalize ( AssimObj aself)

Finalize a Listener.

Parameters
[in,out]aselfListener to finalize

Definition at line 53 of file listener.c.

References CASTTOCLASS, FREECLASSOBJ, and UNREF.

Referenced by _authlistener_finalize(), _hblistener_finalize(), and listener_new().

Here is the caller graph for this function:

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

Definition at line 43 of file listener.c.

References UNREF.

Referenced by listener_new().

Here is the caller graph for this function:

Listener* listener_new ( ConfigContext config,
gsize  objsize 
)

Construct a new Listener - setting up GSource and timeout data structures for it.

This can be used directly or by derived classes.

Parameters
[in,out]configconfiguration context
[in]objsizesize of Listener structure (0 for sizeof(Listener))

Definition at line 82 of file listener.c.

References _AssimObj::_finalize, _listener_associate(), _listener_dissociate(), _listener_finalize(), _listener_got_frameset(), assimobj_new(), _Listener::associate, _Listener::baseclass, _Listener::config, obsolete_cma::config, _Listener::dissociate, _Listener::got_frameset, NEWSUBCLASS, and REF.

Referenced by authlistener_new(), hblistener_new(), and main().

Here is the call graph for this function:

Here is the caller graph for this function: