The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CstringFrame class

Class for holding/storing C-style null-terminated strings - Subclass of Frame class. More...

Collaboration diagram for CstringFrame class:

Functions

FSTATIC gboolean _cstringframe_default_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 CstringFrame class 'isvalid' member function (checks for valid C-style string) More...
 
FSTATIC gchar * _cstringframe_toString (gconstpointer)
 
WINEXPORT CstringFramecstringframe_new (guint16 frame_type, gsize framesize)
 Construct a new CstringFrame - allowing for "derived" frame types... More...
 
WINEXPORT Framecstringframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend, gpointer *ignorednewpkt, gpointer *ignoredpktend)
 Given marshalled packet data corresponding to an CstringFrame (C-style string), return the corresponding Frame In other words, un-marshall the data... More...
 
typedef struct _CstringFrame CstringFrame
 

Detailed Description

Class for holding/storing C-style null-terminated strings - Subclass of Frame class.

Typedef Documentation

typedef struct _CstringFrame CstringFrame

Definition at line 31 of file cstringframe.h.

Function Documentation

FSTATIC gboolean _cstringframe_default_isvalid ( const Frame self,
gconstpointer  tlvptr,
gconstpointer  pktend 
)

CstringFrame class 'isvalid' member function (checks for valid C-style string)

Parameters
[in]selfCstringFrame object ('this')
[in]tlvptrPointer to the TLV for this CstringFrame
[in]pktendPointer to one byte past the end of the packet

Definition at line 60 of file cstringframe.c.

References get_generic_tlv_len(), and get_generic_tlv_value().

Referenced by cstringframe_new().

Here is the call graph for this function:

Here is the caller graph for this function:

FSTATIC gchar * _cstringframe_toString ( gconstpointer  obj)

Definition at line 90 of file cstringframe.c.

References CASTTOCONSTCLASS.

Referenced by cstringframe_new().

Here is the caller graph for this function:

WINEXPORT CstringFrame* cstringframe_new ( guint16  frame_type,
gsize  framesize 
)

Construct a new CstringFrame - allowing for "derived" frame types...

This can be used directly for creating CstringFrame frames, or by derived classes.

Parameters
frame_typeTLV type of CstringFrame
framesizesize of frame structure (or zero for sizeof(CstringFrame))

Definition at line 101 of file cstringframe.c.

References __FUNCTION__, _cstringframe_default_isvalid(), _cstringframe_toString(), _Frame::baseclass, BINDDEBUG, DEBUGMSG5, frame_new(), _Frame::isvalid, NEWSUBCLASS, and _AssimObj::toString.

Referenced by cma.AssimCclasses.pyCstringFrame::__init__(), _discovery_sendjson(), _nano_send_rscexitstatus(), cast_frameset_tests(), construct_pcap_frameset(), create_sendexpecthb(), create_setconfig(), cstringframe_tlvconstructor(), fakecma_startup(), nano_reqconfig(), and nanoprobe_report_upstream().

Here is the call graph for this function:

Here is the caller graph for this function:

WINEXPORT Frame* cstringframe_tlvconstructor ( gconstpointer  tlvstart,
gconstpointer  pktend,
gpointer *  ignorednewpkt,
gpointer *  ignoredpktend 
)

Given marshalled packet data corresponding to an CstringFrame (C-style string), return the corresponding Frame In other words, un-marshall the data...

Parameters
[in]tlvstartStart of marshalled CStringFrame data
[in]pktendPointer to first invalid byte past 'tlvstart'
ignorednewpkt[ignored] replacement packet
ignoredpktend[ignored] end of replacement packet

Definition at line 124 of file cstringframe.c.

References _CstringFrame::baseclass, CASTTOCLASS, cstringframe_new(), frame_default_valuefinalize(), get_generic_tlv_len(), get_generic_tlv_type(), get_generic_tlv_value(), _Frame::length, and _Frame::setvalue.

Here is the call graph for this function: