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

fix bug, use system utility

This commit is contained in:
winlin 2015-10-13 17:37:59 +08:00
parent 69cc01b696
commit 20fcfb3eee
8 changed files with 41 additions and 13 deletions

View file

@ -30,6 +30,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_core.hpp>
#include <string>
#include <st.h>
#include <srs_app_st.hpp>
@ -211,6 +213,14 @@ class SrsTcpClient
public:
SrsTcpClient();
virtual ~SrsTcpClient();
public:
/**
* connect to server over TCP.
* @param host the ip or hostname of server.
* @param port the port to connect to.
* @param timeout the timeout in us.
*/
virtual int connect(std::string host, int port, int64_t timeout);
};
// initialize st, requires epoll.