mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
init st, add error code
This commit is contained in:
parent
eb3b824e6c
commit
5b02f9c78b
8 changed files with 201 additions and 19 deletions
|
@ -24,12 +24,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <unistd.h>
|
||||
|
||||
#include <srs_core_log.hpp>
|
||||
#include <srs_core_error.hpp>
|
||||
#include <srs_core_server.hpp>
|
||||
|
||||
int main(int /*argc*/, char** /*argv*/){
|
||||
log_context->SetId();
|
||||
int ret = ERROR_SUCCESS;
|
||||
|
||||
SrsWarn("server start.");
|
||||
SrsInfo("listen at 1935");
|
||||
SrsServer server;
|
||||
|
||||
if ((ret = server.initialize()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue