|
The Assimilation Monitoring Project
|
Base Listener class - Listen for FrameSets. More...
|
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... | |
| Listener * | listener_new (ConfigContext *config, gsize objsize) |
| Construct a new Listener - setting up GSource and timeout data structures for it. More... | |
Base Listener class - Listen for FrameSets.
| #define ONESEC 1000000 |
Definition at line 39 of file listener.c.
| 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().

Associate the current NetGSource from this Listener class..
Definition at line 72 of file listener.c.
Referenced by listener_new().

| void _listener_finalize | ( | AssimObj * | aself | ) |
Finalize a Listener.
| [in,out] | aself | Listener to finalize |
Definition at line 53 of file listener.c.
References CASTTOCLASS, FREECLASSOBJ, and UNREF.
Referenced by _authlistener_finalize(), _hblistener_finalize(), and listener_new().

(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().

| 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.
| [in,out] | config | configuration context |
| [in] | objsize | size 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, cma.cma::config, _Listener::dissociate, _Listener::got_frameset, NEWSUBCLASS, and REF.
Referenced by authlistener_new(), hblistener_new(), and main().

