Skip to content

Commit 07339e1

Browse files
lipeng19811218winlinvip
authored andcommitted
WebRTC: Support TCP network.
1 parent 625069a commit 07339e1

5 files changed

+565
-4
lines changed

trunk/src/app/srs_app_rtc_conn.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -2236,6 +2236,11 @@ SrsRtcUdpNetwork* SrsRtcConnection::udp()
22362236
return networks_->udp();
22372237
}
22382238

2239+
SrsRtcTcpNetwork* SrsRtcConnection::tcp()
2240+
{
2241+
return networks_->tcp();
2242+
}
2243+
22392244
srs_error_t SrsRtcConnection::send_rtcp(char *data, int nb_data)
22402245
{
22412246
srs_error_t err = srs_success;

trunk/src/app/srs_app_rtc_conn.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class SrsEphemeralDelta;
5555
class SrsRtcNetworks;
5656
class SrsRtcUdpNetwork;
5757
class ISrsRtcNetwork;
58+
class SrsRtcTcpNetwork;
5859

5960
const uint8_t kSR = 200;
6061
const uint8_t kRR = 201;
@@ -518,6 +519,7 @@ class SrsRtcConnection : public ISrsResource, public ISrsDisposingHandler, publi
518519
void alive();
519520
public:
520521
SrsRtcUdpNetwork* udp();
522+
SrsRtcTcpNetwork* tcp();
521523
public:
522524
// send rtcp
523525
srs_error_t send_rtcp(char *data, int nb_data);

0 commit comments

Comments
 (0)