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

support reload pid.

This commit is contained in:
winlin 2014-04-12 20:46:32 +08:00
parent 0a016e58bf
commit f652c28485
5 changed files with 41 additions and 0 deletions

View file

@ -88,6 +88,7 @@ private:
SrsIngester* ingester;
#endif
private:
int pid_fd;
std::vector<SrsConnection*> conns;
std::vector<SrsListener*> listeners;
bool signal_reload;
@ -107,8 +108,10 @@ public:
private:
virtual void close_listeners();
virtual int accept_client(SrsListenerType type, st_netfd_t client_stfd);
// interface ISrsThreadHandler.
public:
virtual int on_reload_listen();
virtual int on_reload_pid();
};
#endif