|
The Assimilation Monitoring Project
|
Class representing packet "sequence numbers" - subclass of Frame class. More...
|
Functions | |
| FSTATIC void | _seqnoframe_initsessionid (void) |
| Initialize our session ID to something monotonically increasing. More... | |
| FSTATIC void | _seqnoframe_setreqid (SeqnoFrame *self, guint64 value) |
| Set the request id value associated with a SeqnoFrame. More... | |
| FSTATIC void | _seqnoframe_setqid (SeqnoFrame *self, guint16 value) |
| Set the Queue id value associated with a SeqnoFrame. More... | |
| FSTATIC guint64 | _seqnoframe_getreqid (SeqnoFrame *self) |
| Get the request id associated with a SeqnoFrame. More... | |
| FSTATIC guint16 | _seqnoframe_getqid (SeqnoFrame *self) |
| Get the queue id associated with a SeqnoFrame. More... | |
| FSTATIC guint32 | _seqnoframe_getsessionid (SeqnoFrame *self) |
| Get the session id associated with a SeqnoFrame. More... | |
| FSTATIC gboolean | _seqnoframe_equal (SeqnoFrame *self, SeqnoFrame *rhs) |
| Compare two SeqnoFrames for equality including the queue id. More... | |
| FSTATIC int | _seqnoframe_compare (SeqnoFrame *self, SeqnoFrame *rhs) |
| Compare two SeqnoFrames - ignoring the queue id. More... | |
| FSTATIC void | _seqnoframe_updatedata (Frame *fself,gpointer tlvptr,gconstpointer pktend,FrameSet *fs) |
| Update packet data from the frame. More... | |
| Frame * | seqnoframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend) |
| Construct Frame (SeqnoFrame) object from marshalled packet data. More... | |
| FSTATIC gboolean | _seqnoframe_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend) |
| Return TRUE if this sequence number is valid - if it's the right size. More... | |
| SeqnoFrame * | seqnoframe_new (guint16 frametype, int objsize) |
| Construct new SeqnoFrame object. More... | |
| SeqnoFrame * | seqnoframe_new_init (guint16 frametype, guint64 reqid, guint16 qid) |
| Construct a fully-iniitialized SeqnoFrame object. More... | |
| FSTATIC char * | _seqnoframe_toString (gconstpointer vself) |
| typedef struct _SeqnoFrame | SeqnoFrame |
Class representing packet "sequence numbers" - subclass of Frame class.
| typedef struct _SeqnoFrame SeqnoFrame |
Definition at line 35 of file seqnoframe.h.
| FSTATIC int _seqnoframe_compare | ( | SeqnoFrame * | self, |
| SeqnoFrame * | rhs | ||
| ) |
Compare two SeqnoFrames - ignoring the queue id.
Definition at line 131 of file seqnoframe.c.
References _SeqnoFrame::getreqid, and _SeqnoFrame::getsessionid.
Referenced by seqnoframe_new().

| FSTATIC gboolean _seqnoframe_equal | ( | SeqnoFrame * | self, |
| SeqnoFrame * | rhs | ||
| ) |
Compare two SeqnoFrames for equality including the queue id.
Definition at line 122 of file seqnoframe.c.
References _SeqnoFrame::_qid.
Referenced by seqnoframe_new().

| FSTATIC guint16 _seqnoframe_getqid | ( | SeqnoFrame * | self | ) |
Get the queue id associated with a SeqnoFrame.
Definition at line 109 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC guint64 _seqnoframe_getreqid | ( | SeqnoFrame * | self | ) |
Get the request id associated with a SeqnoFrame.
Definition at line 103 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC guint32 _seqnoframe_getsessionid | ( | SeqnoFrame * | self | ) |
Get the session id associated with a SeqnoFrame.
Definition at line 115 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC void _seqnoframe_initsessionid | ( | void | ) |
Initialize our session ID to something monotonically increasing.
There are a couple of ways of achieving this...
Definition at line 78 of file seqnoframe.c.
References FIVESECONDS, and g_get_real_time().
Referenced by seqnoframe_new().


| FSTATIC gboolean _seqnoframe_isvalid | ( | const Frame * | self, |
| gconstpointer | tlvptr, | ||
| gconstpointer | pktend | ||
| ) |
Return TRUE if this sequence number is valid - if it's the right size.
| self | Frame to validate |
| tlvptr | TLV pointer to our TLV |
| pktend | pointer to one byte past end of packet |
Definition at line 190 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC void _seqnoframe_setqid | ( | SeqnoFrame * | self, |
| guint16 | value | ||
| ) |
Set the Queue id value associated with a SeqnoFrame.
Definition at line 96 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC void _seqnoframe_setreqid | ( | SeqnoFrame * | self, |
| guint64 | value | ||
| ) |
Set the request id value associated with a SeqnoFrame.
Definition at line 89 of file seqnoframe.c.
Referenced by seqnoframe_new().

| FSTATIC char * _seqnoframe_toString | ( | gconstpointer | vself | ) |
Definition at line 255 of file seqnoframe.c.
References CASTTOCONSTCLASS, and FMT_64BIT.
Referenced by seqnoframe_new().

| FSTATIC void _seqnoframe_updatedata | ( | Frame * | fself, |
| gpointer | tlvptr, | ||
| gconstpointer | pktend, | ||
| FrameSet * | fs | ||
| ) |
Update packet data from the frame.
| fself | object whose data will be put into FrameSet packet |
| tlvptr | pointer to our current TLV entry |
| pktend | end of packet |
| fs | FrameSet that we're doing this for |
Definition at line 153 of file seqnoframe.c.
References CASTTOCLASS, get_generic_tlv_nonconst_value(), tlv_set_guint16(), tlv_set_guint32(), and tlv_set_guint64().
Referenced by seqnoframe_new().


| SeqnoFrame* seqnoframe_new | ( | guint16 | frametype, |
| int | objsize | ||
| ) |
Construct new SeqnoFrame object.
| frametype | Type of frame to create with this value |
| objsize | Size of the object type - 0 means sizeof(SeqnoFrame) |
Definition at line 202 of file seqnoframe.c.
References _SeqnoFrame::_qid, _SeqnoFrame::_reqid, _seqnoframe_compare(), _seqnoframe_equal(), _seqnoframe_getqid(), _seqnoframe_getreqid(), _seqnoframe_getsessionid(), _seqnoframe_initsessionid(), _seqnoframe_isvalid(), _seqnoframe_setqid(), _seqnoframe_setreqid(), _seqnoframe_toString(), _seqnoframe_updatedata(), _SeqnoFrame::_sessionid, _Frame::baseclass, _SeqnoFrame::baseclass, _SeqnoFrame::compare, _SeqnoFrame::equal, frame_new(), _SeqnoFrame::getqid, _SeqnoFrame::getreqid, _SeqnoFrame::getsessionid, _Frame::isvalid, _Frame::length, NEWSUBCLASS, _SeqnoFrame::setqid, _SeqnoFrame::setreqid, _Frame::setvalue, _AssimObj::toString, _Frame::updatedata, _Frame::value, and _Frame::valuefinalize.
Referenced by cma.AssimCclasses.pySeqnoFrame::__init__(), seqnoframe_new_init(), and seqnoframe_tlvconstructor().


| SeqnoFrame* seqnoframe_new_init | ( | guint16 | frametype, |
| guint64 | reqid, | ||
| guint16 | qid | ||
| ) |
Construct a fully-iniitialized SeqnoFrame object.
| frametype | Type of frame to create with this value |
| reqid | Request id |
| qid | Queue id |
Definition at line 242 of file seqnoframe.c.
References seqnoframe_new(), _SeqnoFrame::setqid, and _SeqnoFrame::setreqid.
Referenced by _fsqueue_enq().


| Frame* seqnoframe_tlvconstructor | ( | gconstpointer | tlvstart, |
| gconstpointer | pktend | ||
| ) |
Construct Frame (SeqnoFrame) object from marshalled packet data.
| [in] | tlvstart | Start of SeqnoFrame TLV area |
| [in] | pktend | first byte past end of packet |
Definition at line 171 of file seqnoframe.c.
References _SeqnoFrame::_sessionid, CASTTOCLASS, get_generic_tlv_len(), get_generic_tlv_type(), get_generic_tlv_value(), seqnoframe_new(), _SeqnoFrame::setqid, _SeqnoFrame::setreqid, tlv_get_guint16(), tlv_get_guint32(), and tlv_get_guint64().
