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

refine code.

This commit is contained in:
winlin 2015-10-23 14:37:34 +08:00
parent d2ca51ac50
commit cbe4252b4d
2 changed files with 35 additions and 35 deletions

View file

@ -173,11 +173,7 @@ public:
virtual int initialize();
virtual int start();
virtual void stop();
// interface ISrsKafkaCluster
public:
virtual int on_client(int key, SrsListenerType type, std::string ip);
virtual int on_close(int key);
// for worker to call task to send object.
// internal: for worker to call task to send object.
public:
/**
* send json object to kafka cluster.
@ -186,6 +182,10 @@ public:
* @param obj the json object; user must never free it again.
*/
virtual int send(int key, SrsJsonObject* obj);
// interface ISrsKafkaCluster
public:
virtual int on_client(int key, SrsListenerType type, std::string ip);
virtual int on_close(int key);
// interface ISrsReusableThreadHandler
public:
virtual int cycle();