1
0
Fork 0
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:
winlin 2014-12-02 12:19:17 +08:00
parent 212a9aa78c
commit 3584bdb7b6
6 changed files with 329 additions and 128 deletions

View file

@ -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();