Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
Indication/HTTPResponseIndication.h@9:0ce800923eda, 2016-03-16 (annotated)
- Committer:
- yangcq88517
- Date:
- Wed Mar 16 15:04:46 2016 +0000
- Revision:
- 9:0ce800923eda
- Parent:
- 0:8e83b9448758
bug fix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yangcq88517 | 0:8e83b9448758 | 1 | #ifndef SmartLab_MuRata_Indication_HTTPResponseIndication |
yangcq88517 | 0:8e83b9448758 | 2 | #define SmartLab_MuRata_Indication_HTTPResponseIndication |
yangcq88517 | 0:8e83b9448758 | 3 | |
yangcq88517 | 0:8e83b9448758 | 4 | #include "Payload.h" |
yangcq88517 | 0:8e83b9448758 | 5 | |
yangcq88517 | 0:8e83b9448758 | 6 | namespace SmartLabMuRata |
yangcq88517 | 0:8e83b9448758 | 7 | { |
yangcq88517 | 0:8e83b9448758 | 8 | /// <summary> |
yangcq88517 | 0:8e83b9448758 | 9 | /// The most significant bit of Content length is reserved to indicate if there is more data to send to the host. When this bit is 1, the host application should continue to receive SNIC_HTTP_RSP_IND, until this bit is 0. The Content length is limited by the receive buffer size specified in SNIC_INIT_REQ and the system resource at that moment. |
yangcq88517 | 0:8e83b9448758 | 10 | /// </summary> |
yangcq88517 | 0:8e83b9448758 | 11 | class HTTPResponseIndication : public Payload |
yangcq88517 | 0:8e83b9448758 | 12 | { |
yangcq88517 | 0:8e83b9448758 | 13 | private : |
yangcq88517 | 0:8e83b9448758 | 14 | int contentLength; |
yangcq88517 | 0:8e83b9448758 | 15 | |
yangcq88517 | 0:8e83b9448758 | 16 | public : |
yangcq88517 | 0:8e83b9448758 | 17 | |
yangcq88517 | 0:8e83b9448758 | 18 | static const int PAYLOAD_OFFSET = 4; |
yangcq88517 | 0:8e83b9448758 | 19 | |
yangcq88517 | 0:8e83b9448758 | 20 | HTTPResponseIndication(Payload * payload); |
yangcq88517 | 0:8e83b9448758 | 21 | |
yangcq88517 | 0:8e83b9448758 | 22 | /// <summary> |
yangcq88517 | 0:8e83b9448758 | 23 | /// The most significant bit of Content length is reserved to indicate if there is more data to send to the host. When this bit is 1, the host application should continue to receive SNIC_HTTP_RSP_IND, until this bit is 0. The Content length is limited by the receive buffer size specified in SNIC_INIT_REQ and the system resource at that moment. |
yangcq88517 | 0:8e83b9448758 | 24 | /// </summary> |
yangcq88517 | 0:8e83b9448758 | 25 | /// <returns></returns> |
yangcq88517 | 0:8e83b9448758 | 26 | bool isMoreDataComing(); |
yangcq88517 | 0:8e83b9448758 | 27 | |
yangcq88517 | 0:8e83b9448758 | 28 | int GetContentLength(); |
yangcq88517 | 0:8e83b9448758 | 29 | |
yangcq88517 | 0:8e83b9448758 | 30 | char GetContent(int index); |
yangcq88517 | 0:8e83b9448758 | 31 | |
yangcq88517 | 0:8e83b9448758 | 32 | const char * GetContent(); |
yangcq88517 | 0:8e83b9448758 | 33 | |
yangcq88517 | 0:8e83b9448758 | 34 | /// <summary> |
yangcq88517 | 0:8e83b9448758 | 35 | /// Get the start index of the content |
yangcq88517 | 0:8e83b9448758 | 36 | /// </summary> |
yangcq88517 | 0:8e83b9448758 | 37 | /// <returns></returns> |
yangcq88517 | 0:8e83b9448758 | 38 | int GetContentOffset(); |
yangcq88517 | 0:8e83b9448758 | 39 | }; |
yangcq88517 | 0:8e83b9448758 | 40 | } |
yangcq88517 | 0:8e83b9448758 | 41 | |
yangcq88517 | 0:8e83b9448758 | 42 | #endif |