The Assimilation Project  based on Assimilation version
Go to the documentation of this file.
26 #ifndef _AUTHLISTENER_H
27 #define _AUTHLISTENER_H
28 #include <projectcommon.h>
29 #include <netaddr.h>
30 #include <listener.h>
31 typedef struct _AuthListener AuthListener;
32 #include <netgsource.h>
40 //
41 struct _AuthListener {
43  GHashTable* actionmap;
44  gboolean autoack;
45  gboolean (*authenticator)(const FrameSet*fs, NetAddr*);
46 };
54 };
59 , ConfigContext* config, gboolean autoack
60 , gboolean(*authenticator)(const FrameSet*fs, NetAddr*));
62 #endif /* _AUTHLISTENER_H */
Listener baseclass
Definition: authlistener.h:42
int framesettype
FrameSet class type
Definition: authlistener.h:52
Structure associating FrameSet class types with actions to perform when they&#39;re received.
Definition: authlistener.h:51
void(* AuthListenerAction)(AuthListener *, FrameSet *, NetAddr *)
Definition: authlistener.h:49
Defines Generic Listener interfaces.
Definition: projectcommon.h:45
This is the AuthListener class. object - which (authorizes and) obeys packets from the Authority...
Definition: authlistener.h:41
gboolean autoack
Definition: authlistener.h:44
GHashTable * actionmap
Definition: authlistener.h:43
Project common header file.
AuthListenerAction action
What to do when we get it.
Definition: authlistener.h:53
The NetAddr class class represents a general network address - whether IP, MAC, or any other type of ...
Definition: netaddr.h:43
Defines interfaces for the NetAddr (network address) object.
gboolean(* authenticator)(const FrameSet *fs, NetAddr *)
Definition: authlistener.h:45
WINEXPORT AuthListener * authlistener_new(gsize listen_objsize, ObeyFrameSetTypeMap *map, ConfigContext *config, gboolean autoack, gboolean(*authenticator)(const FrameSet *fs, NetAddr *))
Create an AuthListener.
Definition: authlistener.c:133
FrameSet class - used for collecting Frames when not on the wire, and for marshalling/demarshalling t...
Definition: frameset.h:46
Implements NetIO GSource object.
This is the Listener class. object - which generically listens for packets.
Definition: listener.h:41