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 uint16_t getMediaPort(std::string mediaType)
Definition: ProtocolType.h:224
IPv4Address getOwnerIPv4Address()
SdpLayer & operator=(const SdpLayer &other)
Definition: SdpLayer.h:112
bool addMediaDescription(std::string mediaType, uint16_t mediaPort, std::string mediaProtocol, std::string mediaFormat, std::vector< std::string > mediaAttributes)
Definition: IpAddress.h:113
Definition: TextBasedProtocol.h:104
OsiModelLayer
Definition: ProtocolType.h:213
Definition: SdpLayer.h:59
SdpLayer(const SdpLayer &other)
Definition: SdpLayer.h:105
The main namespace for the PcapPlusPlus lib.
OsiModelLayer getOsiModelLayer()
Definition: SdpLayer.h:156