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

For zerocopy research, support delay in server

This commit is contained in:
winlin 2020-04-20 08:42:53 +08:00
parent 8f9cc38f68
commit a3de167bc7
3 changed files with 23 additions and 8 deletions

View file

@ -16,9 +16,9 @@ int main(int argc, char** argv)
exit(-1);
}
int port = atoi(argv[2]);
char* host = argv[1];
bool pong = !strcmp(argv[3], "pong");
int port = atoi(argv[2]);
bool pong = !strcmp(argv[3], "true");
printf("Server listen %s:%d, pong %d\n", host, port, pong);
assert(!st_set_eventsys(ST_EVENTSYS_ALT));