mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
srs-librtmp support hijack io apis for st-load. 2.0.42.
This commit is contained in:
parent
212a9aa78c
commit
3584bdb7b6
6 changed files with 329 additions and 128 deletions
|
@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <srs_protocol_io.hpp>
|
||||
#include <srs_librtmp.hpp>
|
||||
|
||||
|
||||
/**
|
||||
* simple socket stream,
|
||||
* use tcp socket, sync block mode, for client like srs-librtmp.
|
||||
|
@ -40,11 +40,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
class SimpleSocketStream : public ISrsProtocolReaderWriter
|
||||
{
|
||||
private:
|
||||
int64_t recv_timeout;
|
||||
int64_t send_timeout;
|
||||
int64_t recv_bytes;
|
||||
int64_t send_bytes;
|
||||
SOCKET fd;
|
||||
srs_hijack_io_t io;
|
||||
public:
|
||||
SimpleSocketStream();
|
||||
virtual ~SimpleSocketStream();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue