mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support listen and accept framework
This commit is contained in:
parent
5b02f9c78b
commit
d8a64603c0
9 changed files with 332 additions and 10 deletions
|
@ -36,5 +36,13 @@ int main(int /*argc*/, char** /*argv*/){
|
|||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = server.start(19350)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = server.cycle()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue