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.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HTTPResponseIndication.h Source File

HTTPResponseIndication.h

00001 #ifndef SmartLab_MuRata_Indication_HTTPResponseIndication
00002 #define SmartLab_MuRata_Indication_HTTPResponseIndication
00003 
00004 #include "Payload.h"
00005 
00006 namespace SmartLabMuRata
00007 {
00008 /// <summary>
00009 /// 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.
00010 /// </summary>
00011 class HTTPResponseIndication : public Payload
00012 {
00013 private :
00014     int contentLength;
00015 
00016     public :
00017     
00018     static const int PAYLOAD_OFFSET = 4;
00019     
00020     HTTPResponseIndication(Payload * payload);
00021 
00022     /// <summary>
00023     /// 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.
00024     /// </summary>
00025     /// <returns></returns>
00026     bool isMoreDataComing();
00027     
00028     int GetContentLength();
00029 
00030     char GetContent(int index);
00031     
00032     const char * GetContent();
00033 
00034     /// <summary>
00035     /// Get the start index of the content
00036     /// </summary>
00037     /// <returns></returns>
00038     int GetContentOffset();
00039 };
00040 }
00041 
00042 #endif