The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
authlistener.h
Go to the documentation of this file.
1 
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>
33 
37 
38 
40 //
41 struct _AuthListener {
43  GHashTable* actionmap;
44  gboolean autoack;
45  gboolean (*authenticator)(const FrameSet*fs);
46 };
47 
48 
54 };
55 
56 
59 , ConfigContext* config, gboolean autoack
60 , gboolean(*authenticator)(const FrameSet*fs));
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're received.
Definition: authlistener.h:51
Defines Generic Listener interfaces.
void(* AuthListenerAction)(AuthListener *, FrameSet *, NetAddr *)
Definition: authlistener.h:49
#define WINEXPORT
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)
Definition: authlistener.h:45
FrameSet class - used for collecting Frames when not on the wire, and for marshalling/demarshalling t...
Definition: frameset.h:46
Implements NetIO GSource object.
WINEXPORT AuthListener * authlistener_new(gsize listen_objsize, ObeyFrameSetTypeMap *map, ConfigContext *config, gboolean autoack, gboolean(*authenticator)(const FrameSet *fs))
Create an AuthListener.
Definition: authlistener.c:133
This is the Listener class. object - which generically listens for packets.
Definition: listener.h:41