|
The Assimilation Monitoring Project
|
Class for listening, authenticating, and obeying packets from the Collective Authority. More...
|
Macros | |
| #define | ONESEC 1000000 |
Functions | |
| FSTATIC gboolean | _authlistener_got_frameset (Listener *self, FrameSet *fs, NetAddr *addr) |
| Function called when a FrameSet class arrived from the given NetAddr class. More... | |
| FSTATIC void | _authlistener_associate (Listener *self, NetGSource *transport) |
| FSTATIC void | _authlistener_dissociate (Listener *self) |
| FSTATIC void | _authlistener_finalize (AssimObj *aself) |
| Finalize a Listener. More... | |
| AuthListener * | authlistener_new (gsize objsize, ObeyFrameSetTypeMap *map, ConfigContext *config, gboolean autoack) |
| Construct a new Listener - setting up GSource and timeout data structures for it. More... | |
| typedef struct _ObeyFrameSetTypeMap | ObeyFrameSetTypeMap |
| typedef void(* | AuthListenerAction )(AuthListener *, FrameSet *, NetAddr *) |
Class for listening, authenticating, and obeying packets from the Collective Authority.
| #define ONESEC 1000000 |
Definition at line 43 of file authlistener.c.
| typedef void(* AuthListenerAction)(AuthListener *, FrameSet *, NetAddr *) |
Definition at line 48 of file authlistener.h.
| typedef struct _ObeyFrameSetTypeMap ObeyFrameSetTypeMap |
Definition at line 36 of file authlistener.h.
| FSTATIC void _authlistener_associate | ( | Listener * | self, |
| NetGSource * | transport | ||
| ) |
Definition at line 72 of file authlistener.c.
References _NetGSource::addListener, CASTTOCLASS, _Listener::dissociate, _Listener::transport, and transport.
Referenced by authlistener_new().

Definition at line 89 of file authlistener.c.
References _NetGSource::addListener, CASTTOCLASS, and _Listener::transport.
Referenced by authlistener_new().

Finalize a Listener.
| [in,out] | aself | Listener to finalize |
Definition at line 108 of file authlistener.c.
References _listener_finalize(), and CASTTOCLASS.
Referenced by authlistener_new().


Function called when a FrameSet class arrived from the given NetAddr class.
Definition at line 47 of file authlistener.c.
References __FUNCTION__, _AuthListener::actionmap, _AuthListener::autoack, _FrameSet::baseclass, CASTTOCLASS, DUMP3, _FrameSet::fstype, and UNREF.
Referenced by authlistener_new().

| AuthListener* authlistener_new | ( | gsize | objsize, |
| ObeyFrameSetTypeMap * | map, | ||
| ConfigContext * | config, | ||
| gboolean | autoack | ||
| ) |
Construct a new Listener - setting up GSource and timeout data structures for it.
Create an AuthListener.
This can be used directly or by derived classes.
| [in] | objsize | size of Listener structure (0 for sizeof(Listener)) |
| [in] | map | NULL-terminated map of FrameSet types to action functions - |
| [in,out] | config | configuration context |
| [in] | autoack | TRUE if the authlistener should do the ACKing for us |
Definition at line 123 of file authlistener.c.
References _authlistener_associate(), _authlistener_dissociate(), _authlistener_finalize(), _authlistener_got_frameset(), _AssimObj::_finalize, _ObeyFrameSetTypeMap::action, _AuthListener::actionmap, _Listener::associate, _AuthListener::autoack, _Listener::baseclass, _AuthListener::baseclass, BINDDEBUG, _Listener::dissociate, _ObeyFrameSetTypeMap::framesettype, _Listener::got_frameset, listener_new(), and NEWSUBCLASS.
Referenced by main(), and nano_start_full().

