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

support edge token traverse, fix #104. 0.9.129

This commit is contained in:
winlin 2014-06-21 12:39:04 +08:00
parent 10953c9743
commit 41857edaee
7 changed files with 168 additions and 5 deletions

View file

@ -47,6 +47,7 @@ class SrsHttpHooks;
#endif
class SrsBandwidth;
class SrsKbps;
class SrsRtmpClient;
/**
* the client provides the main logic control for RTMP clients.
@ -90,6 +91,10 @@ private:
virtual int flash_publish(SrsSource* source);
virtual int process_publish_message(SrsSource* source, SrsMessage* msg, bool vhost_is_edge);
virtual int process_play_control_msg(SrsConsumer* consumer, SrsMessage* msg);
private:
virtual int check_edge_token_traverse_auth();
virtual int connect_server(int origin_index, st_netfd_t* pstsock);
virtual int do_token_traverse_auth(SrsSocket* io, SrsRtmpClient* client);
private:
virtual int http_hooks_on_connect();
virtual void http_hooks_on_close();