mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Release v3.0-a2, 3.0.67
This commit is contained in:
parent
75fd041279
commit
5a3fd1e68a
8 changed files with 43 additions and 10 deletions
|
@ -80,6 +80,7 @@ public:
|
|||
virtual srs_error_t decode_message(SrsCommonMessage* msg, SrsPacket** ppacket) = 0;
|
||||
virtual void close() = 0;
|
||||
public:
|
||||
virtual void selected(std::string& server, int& port) = 0;
|
||||
virtual void set_recv_timeout(srs_utime_t tm) = 0;
|
||||
virtual void kbps_sample(const char* label, int64_t age) = 0;
|
||||
};
|
||||
|
@ -91,6 +92,10 @@ private:
|
|||
// use this <ip[:port]> as upstream.
|
||||
std::string redirect;
|
||||
SrsSimpleRtmpClient* sdk;
|
||||
private:
|
||||
// Current selected server, the ip:port.
|
||||
std::string selected_ip;
|
||||
int selected_port;
|
||||
public:
|
||||
// @param rediect, override the server. ignore if empty.
|
||||
SrsEdgeRtmpUpstream(std::string r);
|
||||
|
@ -101,6 +106,7 @@ public:
|
|||
virtual srs_error_t decode_message(SrsCommonMessage* msg, SrsPacket** ppacket);
|
||||
virtual void close();
|
||||
public:
|
||||
virtual void selected(std::string& server, int& port);
|
||||
virtual void set_recv_timeout(srs_utime_t tm);
|
||||
virtual void kbps_sample(const char* label, int64_t age);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue