rtspstack
Class RtspTransportSpec
- class RtspTransportSpec
Grammer for Transport Header
Transport = "Transport" ":"
1\#transport-spec
transport-spec = transport-protocol/profile[/lower-transport]
parameter
transport-protocol = "RTP"
profile = "AVP"
lower-transport = "TCP" | "UDP"
parameter = ( "unicast" | "multicast" )
| ";" "destination" [ "=" address ]
| ";" "interleaved" "=" channel [ "-" channel ]
| ";" "append"
| ";" "ttl" "=" ttl
| ";" "layers" "=" 1*DIGIT
| ";" "port" "=" port [ "-" port ]
| ";" "client_port" "=" port [ "-" port ]
| ";" "server_port" "=" port [ "-" port ]
| ";" "ssrc" "=" ssrc
| ";" "mode" = <"> 1\#mode <">
ttl = 1*3(DIGIT)
port = 1*5(DIGIT)
ssrc = 8*8(HEX)
channel = 1*3(DIGIT)
address = host
mode = <"> *Method <"> | Method
Example:
Transport: RTP/AVP;multicast;ttl=127;mode="PLAY",
RTP/AVP;unicast;client_port=3456-3457;mode="PLAY"
myClientPortA
public u_int16_t myClientPortA
myClientPortB
public u_int16_t myClientPortB
myDestination
public Data myDestination
myIsAppend
public bool myIsAppend
- for record: If it is false, it is overiwritten mode
if it is true but server is not support it, need to refuse
the request
myIsMulticast
public bool myIsMulticast
- if it is false then it is unicast
myIsRecord
public bool myIsRecord
- mode: If it is false, it is PLAY
myIsTcp
public bool myIsTcp
- if it is false then it is RTP/AVP/UDP
myServerPortA
public u_int16_t myServerPortA
myServerPortB
public u_int16_t myServerPortB
mySource
public Data mySource
RtspTransportSpec
public RtspTransportSpec()
RtspTransportSpec
public RtspTransportSpec(const RtspTransportSpec & x)
~RtspTransportSpec
public ~RtspTransportSpec()
encode
public Data encode()
operator=
public RtspTransportSpec & operator=(const RtspTransportSpec & x)
operator==
public const bool operator==(const RtspTransportSpec & x)
parse
public void parse(CharDataParser & parser)
parseAppend
public void parseAppend(CharDataParser & paramParser)
parseClientPort
public void parseClientPort(CharDataParser & paramParser)
parseDestination
public void parseDestination(CharDataParser & paramParser)
parseMulticastOrMode
public void parseMulticastOrMode(CharDataParser & paramParser)
parseProtocol
public void parseProtocol(CharDataParser & paramParser)
parseSource
public void parseSource(CharDataParser & paramParser)
parseUnicast
public void parseUnicast(CharDataParser & paramParser)
reset
public void reset()