Yes We Can / yeswecancoap

Dependencies:   DebugLib EthernetInterface cantcoap mbed-rtos

Dependents:   COAP coap

Fork of yeswecancoap by Sille Van Landschoot

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers request.cpp Source File

request.cpp

00001 #include "request.h"
00002 
00003 Request::Request() : CoapPDU()
00004 {
00005     
00006 }
00007 
00008 Request::Request(uint8_t *pdu, int pduLength) : CoapPDU(pdu, pduLength)
00009 {
00010     
00011 }
00012 
00013 Request::Request(uint8_t *buffer, int bufferLength, int pduLength) : CoapPDU(buffer, bufferLength, pduLength)
00014 {
00015     
00016 }
00017 
00018 char* Request::getContent()
00019 {
00020     return reinterpret_cast<char*>(CoapPDU::getPayloadPointer());
00021 }
00022 
00023 int Request::getContentLength()
00024 {
00025     return CoapPDU::getPayloadLength();
00026 }
00027 
00028 int Request::hasContent()
00029 {
00030     return CoapPDU::getPayloadLength();
00031 }
00032 
00033