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

extract core and app module.

This commit is contained in:
winlin 2014-03-01 10:14:25 +08:00
parent 62fbe9e760
commit 4e91a3d5aa
18 changed files with 99 additions and 20 deletions

View file

@ -109,16 +109,3 @@ void srs_vhost_resolve(std::string& vhost, std::string& app)
}
}
void srs_close_stfd(st_netfd_t& stfd)
{
if (stfd) {
int fd = st_netfd_fileno(stfd);
st_netfd_close(stfd);
stfd = NULL;
// st does not close it sometimes,
// close it manually.
close(fd);
}
}