mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Upgrade libsrt from 1.4.1 to 1.5.1. v6.0.12 (#3362)
Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
7a56208f2f
commit
fe086dfc31
143 changed files with 38185 additions and 15108 deletions
62
trunk/3rdparty/srt-1-fit/srtcore/group_common.h
vendored
Normal file
62
trunk/3rdparty/srt-1-fit/srtcore/group_common.h
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* SRT - Secure, Reliable, Transport
|
||||
* Copyright (c) 2021 Haivision Systems Inc.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
Written by
|
||||
Haivision Systems Inc.
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef INC_SRT_GROUP_COMMON_H
|
||||
#define INC_SRT_GROUP_COMMON_H
|
||||
|
||||
#include "srt.h"
|
||||
#include "common.h"
|
||||
#include "core.h"
|
||||
|
||||
#include <list>
|
||||
|
||||
namespace srt
|
||||
{
|
||||
namespace groups
|
||||
{
|
||||
typedef SRT_MEMBERSTATUS GroupState;
|
||||
|
||||
struct SocketData
|
||||
{
|
||||
SRTSOCKET id; // same as ps->m_SocketID
|
||||
CUDTSocket* ps;
|
||||
int token;
|
||||
SRT_SOCKSTATUS laststatus;
|
||||
GroupState sndstate;
|
||||
GroupState rcvstate;
|
||||
int sndresult;
|
||||
int rcvresult;
|
||||
sockaddr_any agent;
|
||||
sockaddr_any peer;
|
||||
bool ready_read;
|
||||
bool ready_write;
|
||||
bool ready_error;
|
||||
|
||||
// Configuration
|
||||
uint16_t weight;
|
||||
|
||||
// Stats
|
||||
int64_t pktSndDropTotal;
|
||||
};
|
||||
|
||||
SocketData prepareSocketData(CUDTSocket* s);
|
||||
|
||||
typedef std::list<SocketData> group_t;
|
||||
typedef group_t::iterator gli_t;
|
||||
|
||||
} // namespace groups
|
||||
} // namespace srt
|
||||
|
||||
#endif // INC_SRT_GROUP_COMMON_H
|
Loading…
Add table
Add a link
Reference in a new issue