1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

make code easy, wrap udp remux socket

This commit is contained in:
xiaozhihong 2020-03-08 00:30:31 +08:00
parent b730458d51
commit c62901a3ac
11 changed files with 245 additions and 294 deletions

View file

@ -129,6 +129,7 @@ srs_error_t SrsStunPacket::decode(const char* buf, const int nb_buf)
switch (type) {
// FIXME: enum
case 6: {
username = val;
size_t p = val.find(":");
if (p != string::npos) {
local_ufrag = val.substr(0, p);