KO
|
EN
gitlite — search
Search
#php
#c-plus-plus
#python
#r
#html
#machine-learning
#statistics
#golang
#rust
#javascript
#jquery
#go
sdp-cpp
★ 42
Open GitHub ↗
C++ SDP library with ABNF strict parsing
Download README (.md)
Explore Similar Repositories
ex_abnf
:
Parser for ABNF Grammars
abnf_parsec
:
ABNF in, parser out
abnf
:
Python parser generator for ABNF grammars
apg-js2
:
Deprecated. Use the updated version, apg-js, instead. JavaScript APG Version 2.0. APG is an ABNF Parser Generator. It generates recursive-descent parsers from a superset of ABNF grammars.
cl-abnf
:
ABNF Parser Generator, per RFC2234
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
sdp-cpp
?
Download (.md)
# sdp++ ABNF C++ SDP library ## Compile Just download source code and: ``` make -j 4 -f Makefile CONF=Release ``` The library should be then availeble at `dist/Release/<arch>/libsdp-cpp.so` ## Usage Just include the `SessionDescription.h` header from the `include` directory ### Parsing an sdp string ``` #include "SessionDescription.h" void main() { try { auto sdp = sdp::SessionDescription::parse("v=0\r\n" "o=- 3803220250780278427 2 IN IP4 127.0.0.1\r\n" "s=-\r\n" "t=0 0\r\n" "a=msid-semantic: WMS\r\n" "m=application 50895 DTLS/SCTP 5000\r\n" "a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:CoKH4lo5t34SYU0pqeJGwes2gJCEWKFmLUv/q0sN|2^48\r\n" "a=sctpmap:5000 webrtc-datachannel 1024\r\n"); } catch (const std::exception& e) { std::cout << e.what(); } } ``` ### Createing and serializing an sdp object ``` #include "SessionDescription.h" void main() { sdp::SessionDescription sdp; auto origin = std::make_shared<sdp::Origin>("-", 0, 0, "IN", "IP4", "127.0.0.1"); sdp.setOrigin(origin); sdp.setSessionName("test"); auto audio = std::make_shared<sdp::MediaDescription>("audio", 9, "UDP/AVP"); sdp.addMedia(audio); std::cout << sdp.toString(); } ``` ## License MIT