mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add api framework code
This commit is contained in:
parent
0ba0c14fb8
commit
eae9b94153
3 changed files with 85 additions and 2 deletions
|
@ -32,16 +32,24 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#ifdef SRS_HTTP_API
|
||||
|
||||
class SrsSocket;
|
||||
class SrsHttpMessage;
|
||||
class SrsHttpParser;
|
||||
|
||||
#include <srs_app_st.hpp>
|
||||
#include <srs_app_conn.hpp>
|
||||
|
||||
class SrsHttpApi : public SrsConnection
|
||||
{
|
||||
private:
|
||||
SrsHttpParser* parser;
|
||||
public:
|
||||
SrsHttpApi(SrsServer* srs_server, st_netfd_t client_stfd);
|
||||
virtual ~SrsHttpApi();
|
||||
protected:
|
||||
virtual int do_cycle();
|
||||
private:
|
||||
virtual int process_request(SrsSocket* skt, SrsHttpMessage* req);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue