Public Member Functions | |
| ThreeGppHttpObjectTracker () | |
| Creates a new instance with all counters begin at zero. | |
| uint16_t | GetNumOfObjectsReceived () const |
| bool | IsEmpty () const |
| bool | ObjectReceived (uint32_t &txSize, uint32_t &rxSize) |
| Shall be invoked after all parts of a complete object have been received. | |
| void | ObjectSent (uint32_t size) |
| Shall be invoked when a whole object has been transmitted. | |
| void | PartReceived (uint32_t size) |
| Shall be invoked when an object part has been received. | |
Private Attributes | |
| uint16_t | m_numOfObjectsReceived |
| Number of whole objects that have been received so far. | |
| std::list< uint32_t > | m_objectsSize |
| Each entry is the size (in bytes) of object transmitted. | |
| uint32_t | m_rxBuffer |
| The accumulated size (in bytes) of parts of a whole object. | |
Definition at line 136 of file three-gpp-http-client-server-test.cc.
| ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::ThreeGppHttpObjectTracker | ( | ) |
Creates a new instance with all counters begin at zero.
Definition at line 610 of file three-gpp-http-client-server-test.cc.
References m_numOfObjectsReceived, m_rxBuffer, and NS_LOG_FUNCTION.
| uint16_t ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::GetNumOfObjectsReceived | ( | ) | const |
Definition at line 661 of file three-gpp-http-client-server-test.cc.
References m_numOfObjectsReceived.
| bool ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::IsEmpty | ( | ) | const |
Definition at line 655 of file three-gpp-http-client-server-test.cc.
References m_objectsSize, and m_rxBuffer.
| bool ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::ObjectReceived | ( | uint32_t & | txSize, |
| uint32_t & | rxSize ) |
Shall be invoked after all parts of a complete object have been received.
| [out] | txSize | Size of the whole object (in bytes) when it was transmitted. |
| [out] | rxSize | Size of the whole object (in bytes) received. |
Definition at line 632 of file three-gpp-http-client-server-test.cc.
References m_numOfObjectsReceived, m_objectsSize, m_rxBuffer, and NS_LOG_FUNCTION.
| void ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::ObjectSent | ( | uint32_t | size | ) |
Shall be invoked when a whole object has been transmitted.
| size | Size of the whole object (in bytes). |
Definition at line 618 of file three-gpp-http-client-server-test.cc.
References m_objectsSize, and NS_LOG_FUNCTION.
| void ThreeGppHttpObjectTestCase::ThreeGppHttpObjectTracker::PartReceived | ( | uint32_t | size | ) |
Shall be invoked when an object part has been received.
| size | Size of the object part (in bytes). This amount will be accumulated until ObjectReceived() is invoked. |
Definition at line 625 of file three-gpp-http-client-server-test.cc.
References m_rxBuffer, and NS_LOG_FUNCTION.
|
private |
Number of whole objects that have been received so far.
Definition at line 180 of file three-gpp-http-client-server-test.cc.
Referenced by ThreeGppHttpObjectTracker(), GetNumOfObjectsReceived(), and ObjectReceived().
|
private |
Each entry is the size (in bytes) of object transmitted.
A new entry is pushed to the back when a new object is transmitted. The frontmost entry is then removed when a whole object is received, i.e., it's logically a first-in-first-out queue data structure.
Definition at line 176 of file three-gpp-http-client-server-test.cc.
Referenced by IsEmpty(), ObjectReceived(), and ObjectSent().
|
private |
The accumulated size (in bytes) of parts of a whole object.
Definition at line 178 of file three-gpp-http-client-server-test.cc.
Referenced by ThreeGppHttpObjectTracker(), IsEmpty(), ObjectReceived(), and PartReceived().