|
| SdpLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
|
| SdpLayer () |
| An empty c'tor which initialize an empty message with no fields.
|
|
| SdpLayer (const std::string &username, long sessionID, long sessionVersion, IPv4Address ipAddress, const std::string &sessionName, long startTime, long stopTime) |
|
| SdpLayer (const SdpLayer &other) |
|
SdpLayer & | operator= (const SdpLayer &other) |
|
IPv4Address | getOwnerIPv4Address () const |
|
uint16_t | getMediaPort (const std::string &mediaType) const |
|
bool | addMediaDescription (const std::string &mediaType, uint16_t mediaPort, const std::string &mediaProtocol, const std::string &mediaFormat, const std::vector< std::string > &mediaAttributes) |
|
OsiModelLayer | getOsiModelLayer () const override |
|
std::string | toString () const override |
|
HeaderField * | getFieldByName (std::string fieldName, int index=0) const |
|
HeaderField * | getFirstField () const |
|
HeaderField * | getNextField (HeaderField *prevField) const |
|
int | getFieldCount () const |
|
virtual HeaderField * | addField (const std::string &fieldName, const std::string &fieldValue) |
|
virtual HeaderField * | addField (const HeaderField &newField) |
|
HeaderField * | addEndOfHeader () |
|
virtual HeaderField * | insertField (HeaderField *prevField, const std::string &fieldName, const std::string &fieldValue) |
|
virtual HeaderField * | insertField (std::string prevFieldName, const std::string &fieldName, const std::string &fieldValue) |
|
virtual HeaderField * | insertField (HeaderField *prevField, const HeaderField &newField) |
|
bool | removeField (HeaderField *fieldToRemove) |
|
bool | removeField (std::string fieldName, int index=0) |
|
bool | isHeaderComplete () const |
|
void | parseNextLayer () override |
| Currently set only PayloadLayer for the rest of the data.
|
|
size_t | getHeaderLen () const override |
|
void | computeCalculateFields () override |
| Does nothing for this class.
|
|
| ~Layer () override |
|
Layer * | getNextLayer () const |
|
Layer * | getPrevLayer () const |
|
ProtocolType | getProtocol () const |
|
bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const |
|
uint8_t * | getData () const |
|
size_t | getDataLen () const |
|
uint8_t * | getLayerPayload () const |
|
size_t | getLayerPayloadSize () const |
|
bool | isAllocatedToPacket () const |
|
void | copyData (uint8_t *toArr) const |
|
uint8_t * | getDataPtr (size_t offset=0) const override |
|
Represents a SDP (Session Description Protocol) message. SDP is a text-based protocol described by a series of fields, one per line (lines are separated by CRLF). The form of each field is as follows:
Each character represents a certain type of field. All field type are represented as macros in SdpLayer.h file (for example: PCPP_SDP_ORIGINATOR_FIELD is a macro for the originator field (o=) ).
For more details about SDP structure please refer to its Wikipedia page: https://en.wikipedia.org/wiki/Session_Description_Protocol