1
0
Fork 0
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:
winlin 2013-10-18 10:39:37 +08:00
parent eb3b824e6c
commit 5b02f9c78b
8 changed files with 201 additions and 19 deletions

View file

@ -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;
}