mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Rename SrsConnection to SrsTcpConnection
This commit is contained in:
parent
2135b638b1
commit
88826aae8f
16 changed files with 49 additions and 47 deletions
|
@ -36,7 +36,7 @@
|
|||
class SrsKbps;
|
||||
class SrsWallClock;
|
||||
class SrsRequest;
|
||||
class SrsConnection;
|
||||
class SrsTcpConnection;
|
||||
class SrsJsonObject;
|
||||
class SrsJsonArray;
|
||||
|
||||
|
@ -110,7 +110,7 @@ struct SrsStatisticClient
|
|||
{
|
||||
public:
|
||||
SrsStatisticStream* stream;
|
||||
SrsConnection* conn;
|
||||
SrsTcpConnection* conn;
|
||||
SrsRequest* req;
|
||||
SrsRtmpConnType type;
|
||||
std::string id;
|
||||
|
@ -205,7 +205,7 @@ public:
|
|||
// @param conn, the physical absract connection object.
|
||||
// @param type, the type of connection.
|
||||
// TODO: FIXME: We should not use context id as client id.
|
||||
virtual srs_error_t on_client(SrsContextId id, SrsRequest* req, SrsConnection* conn, SrsRtmpConnType type);
|
||||
virtual srs_error_t on_client(SrsContextId id, SrsRequest* req, SrsTcpConnection* conn, SrsRtmpConnType type);
|
||||
// Client disconnect
|
||||
// @remark the on_disconnect always call, while the on_client is call when
|
||||
// only got the request object, so the client specified by id maybe not
|
||||
|
@ -215,7 +215,7 @@ public:
|
|||
// Sample the kbps, add delta bytes of conn.
|
||||
// Use kbps_sample() to get all result of kbps stat.
|
||||
// TODO: FIXME: the add delta must use ISrsKbpsDelta interface instead.
|
||||
virtual void kbps_add_delta(SrsConnection* conn);
|
||||
virtual void kbps_add_delta(SrsTcpConnection* conn);
|
||||
// Calc the result for all kbps.
|
||||
// @return the server kbps.
|
||||
virtual SrsKbps* kbps_sample();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue