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

refine code, support override vhost

This commit is contained in:
winlin 2015-10-14 11:47:35 +08:00
parent a9ad7b211b
commit e4c852945f
3 changed files with 55 additions and 39 deletions

View file

@ -72,11 +72,13 @@ public:
virtual ~SrsSimpleRtmpClient();
public:
virtual int connect(std::string url, int64_t timeout);
virtual int connect(std::string url, std::string vhost, int64_t timeout);
private:
virtual int connect_app(std::string vhost);
public:
virtual void close();
public:
virtual int rtmp_write_packet(char type, u_int32_t timestamp, char* data, int size);
private:
virtual int connect_app(std::string ep_server, int ep_port);
};
/**