mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support listen multiple ports.
This commit is contained in:
parent
2aa15a1134
commit
c0b6982e0d
7 changed files with 232 additions and 104 deletions
|
@ -31,9 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
int main(int argc, char** argv){
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
Config config;
|
||||
|
||||
if ((ret = config.parse_options(argc, argv)) != ERROR_SUCCESS) {
|
||||
if ((ret = config->parse_options(argc, argv)) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -43,7 +41,7 @@ int main(int argc, char** argv){
|
|||
return ret;
|
||||
}
|
||||
|
||||
if ((ret = server.listen(1935)) != ERROR_SUCCESS) {
|
||||
if ((ret = server.listen()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue