|
The Assimilation Monitoring Project
|
Class for holding/storing C-style null-terminated strings - Subclass of Frame class. More...
|
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 CstringFrame * | cstringframe_new (guint16 frame_type, gsize framesize) |
| Construct a new CstringFrame - allowing for "derived" frame types... More... | |
| WINEXPORT Frame * | cstringframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend) |
| 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 |
Class for holding/storing C-style null-terminated strings - Subclass of Frame class.
| typedef struct _CstringFrame CstringFrame |
Definition at line 31 of file cstringframe.h.
| FSTATIC gboolean _cstringframe_default_isvalid | ( | const Frame * | self, |
| gconstpointer | tlvptr, | ||
| gconstpointer | pktend | ||
| ) |
CstringFrame class 'isvalid' member function (checks for valid C-style string)
| [in] | self | CstringFrame object ('this') |
| [in] | tlvptr | Pointer to the TLV for this CstringFrame |
| [in] | pktend | Pointer 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().


| FSTATIC gchar * _cstringframe_toString | ( | gconstpointer | obj | ) |
Definition at line 91 of file cstringframe.c.
References CASTTOCONSTCLASS.
Referenced by cstringframe_new().

| 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.
| frame_type | TLV type of CstringFrame |
| framesize | size of frame structure (or zero for sizeof(CstringFrame)) |
Definition at line 102 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__(), _jsondiscovery_send(), _nano_send_rscexitstatus(), cast_frameset_tests(), construct_pcap_frameset(), create_setconfig(), cstringframe_tlvconstructor(), fakecma_startup(), nano_reqconfig(), and nanoprobe_report_upstream().


Given marshalled packet data corresponding to an CstringFrame (C-style string), return the corresponding Frame In other words, un-marshall the data...
| [in] | tlvstart | Start of marshalled CStringFrame data |
| [in] | pktend | Pointer to first invalid byte past 'tlvstart' |
Definition at line 125 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.
