1 #ifndef PACKETPP_SDP_LAYER 2 #define PACKETPP_SDP_LAYER 18 #define PCPP_SDP_PROTOCOL_VERSION_FIELD "v" 20 #define PCPP_SDP_ORIGINATOR_FIELD "o" 22 #define PCPP_SDP_SESSION_NAME_FIELD "s" 24 #define PCPP_SDP_INFO_FIELD "i" 26 #define PCPP_SDP_URI_FIELD "u" 28 #define PCPP_SDP_EMAIL_FIELD "e" 30 #define PCPP_SDP_PHONE_FIELD "p" 32 #define PCPP_SDP_CONNECTION_INFO_FIELD "c" 34 #define PCPP_SDP_BANDWIDTH_FIELD "b" 36 #define PCPP_SDP_TIME_FIELD "t" 38 #define PCPP_SDP_REPEAT_TIMES_FIELD "r" 40 #define PCPP_SDP_TIME_ZONE_FIELD "z" 42 #define PCPP_SDP_ENCRYPTION_KEY_FIELD "k" 44 #define PCPP_SDP_MEDIA_ATTRIBUTE_FIELD "a" 46 #define PCPP_SDP_MEDIA_NAME_FIELD "m" 96 SdpLayer(std::string username,
long sessionID,
long sessionVersion,
IPv4Address ipAddress, std::string sessionName,
long startTime,
long stopTime);
152 bool addMediaDescription(std::string mediaType, uint16_t mediaPort, std::string mediaProtocol, std::string mediaFormat, std::vector<std::string> mediaAttributes);
163 char getHeaderFieldNameValueSeparator()
const {
return '='; }
164 bool spacesAllowedBetweenHeaderFieldNameAndValue()
const {
return false; }
169 #endif // PACKETPP_SDP_LAYER The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:263
SdpLayer(const SdpLayer &other)
Definition: SdpLayer.h:105
uint16_t getMediaPort(std::string mediaType) const
bool addMediaDescription(std::string mediaType, uint16_t mediaPort, std::string mediaProtocol, std::string mediaFormat, std::vector< std::string > mediaAttributes)
Definition: SdpLayer.h:59
Definition: TextBasedProtocol.h:115
Definition: IpAddress.h:27
OsiModelLayer getOsiModelLayer() const
Definition: SdpLayer.h:156
IPv4Address getOwnerIPv4Address() const
Definition: ProtocolType.h:274
std::string toString() const
SdpLayer & operator=(const SdpLayer &other)
Definition: SdpLayer.h:112