The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
_NetGSource Struct Reference

The NetGSource class objects integrate NetIO class objects into the g_main_loop paradigm. More...

#include <netgsource.h>

Collaboration diagram for _NetGSource:

Data Fields

GSource baseclass
 Parent GSource Object pointer. More...
 
GPollFD _gfd
 Poll/select object for gmainloop. More...
 
int _socket
 Underlying socket descriptor. More...
 
gint _gsourceid
 Source ID from g_source_attach() More...
 
gpointer _userdata
 Saved user data. More...
 
GSourceFuncs * _gsfuncs
 pointers to GSource functions More...
 
NetIO_netio
 netio this object is based on More...
 
GHashTable * _dispatchers
 Table of dispatch functions. More...
 
GDestroyNotify _finalize
 Function to call when we're destroyed. More...
 
void(* sendaframeset )(NetGSource *, const NetAddr *, FrameSet *)
 Send a single frameset. More...
 
void(* sendframesets )(NetGSource *, const NetAddr *, GSList *)
 Send a frameset list. More...
 
void(* addListener )(NetGSource *, guint16, Listener *)
 Register a new listener. More...
 

Detailed Description

The NetGSource class objects integrate NetIO class objects into the g_main_loop paradigm.

It is a class from which we might eventually make subclasses, and is managed by our C-Class Management system.

Definition at line 43 of file netgsource.h.

Field Documentation

GHashTable* _NetGSource::_dispatchers

Table of dispatch functions.

Definition at line 51 of file netgsource.h.

Referenced by netgsource_new().

GDestroyNotify _NetGSource::_finalize

Function to call when we're destroyed.

Definition at line 52 of file netgsource.h.

Referenced by netgsource_new().

GPollFD _NetGSource::_gfd

Poll/select object for gmainloop.

Definition at line 45 of file netgsource.h.

Referenced by netgsource_new().

GSourceFuncs* _NetGSource::_gsfuncs

pointers to GSource functions

Definition at line 49 of file netgsource.h.

Referenced by netgsource_new().

gint _NetGSource::_gsourceid

Source ID from g_source_attach()

Definition at line 47 of file netgsource.h.

Referenced by netgsource_new().

int _NetGSource::_socket

Underlying socket descriptor.

Definition at line 46 of file netgsource.h.

Referenced by netgsource_new().

gpointer _NetGSource::_userdata

Saved user data.

Definition at line 48 of file netgsource.h.

Referenced by netgsource_new().

void(* _NetGSource::addListener)(NetGSource *, guint16, Listener *)

Register a new listener.

Definition at line 55 of file netgsource.h.

Referenced by _authlistener_associate(), _authlistener_dissociate(), main(), nanoobey_expecthb(), and netgsource_new().

GSource _NetGSource::baseclass

Parent GSource Object pointer.

Definition at line 44 of file netgsource.h.

Referenced by _jsondiscovery_send(), and main().

void(* _NetGSource::sendaframeset)(NetGSource *, const NetAddr *, FrameSet *)

Send a single frameset.

Definition at line 53 of file netgsource.h.

Referenced by nano_reqconfig(), and netgsource_new().

void(* _NetGSource::sendframesets)(NetGSource *, const NetAddr *, GSList *)

Send a frameset list.

Definition at line 54 of file netgsource.h.

Referenced by netgsource_new(), and cma.tests.cma_test.TestIO::sendreliablefs().


The documentation for this struct was generated from the following file: