mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Log: Refine context id
This commit is contained in:
parent
742826a655
commit
7052a1fafb
2 changed files with 38 additions and 18 deletions
|
@ -23,4 +23,32 @@
|
|||
|
||||
#include <srs_core.hpp>
|
||||
|
||||
_SrsContextId::_SrsContextId()
|
||||
{
|
||||
}
|
||||
|
||||
_SrsContextId::_SrsContextId(std::string v)
|
||||
{
|
||||
v_ = v;
|
||||
}
|
||||
|
||||
_SrsContextId::_SrsContextId(const _SrsContextId& cp)
|
||||
{
|
||||
v_ = cp.v_;
|
||||
}
|
||||
|
||||
const char* _SrsContextId::c_str()
|
||||
{
|
||||
return v_.c_str();
|
||||
}
|
||||
|
||||
bool _SrsContextId::empty()
|
||||
{
|
||||
return v_.empty();
|
||||
}
|
||||
|
||||
int _SrsContextId::compare(const _SrsContextId& to)
|
||||
{
|
||||
return v_.compare(to.v_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue