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() {
return '='; }
164 bool spacesAllowedBetweenHeaderFieldNameAndValue() {
return false; }
169 #endif // PACKETPP_SDP_LAYER OsiModelLayer getOsiModelLayer()
Definition: SdpLayer.h:156
Definition: TextBasedProtocol.h:104
SdpLayer(const SdpLayer &other)
Definition: SdpLayer.h:105
The main namespace for the PcapPlusPlus lib.
Definition: IpAddress.h:113
bool addMediaDescription(std::string mediaType, uint16_t mediaPort, std::string mediaProtocol, std::string mediaFormat, std::vector< std::string > mediaAttributes)
OsiModelLayer
Definition: ProtocolType.h:208
IPv4Address getOwnerIPv4Address()
Definition: SdpLayer.h:59
SdpLayer & operator=(const SdpLayer &other)
Definition: SdpLayer.h:112
Definition: ProtocolType.h:219
uint16_t getMediaPort(std::string mediaType)