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

Update demo for zerocopy

This commit is contained in:
winlin 2020-04-20 20:25:23 +08:00
parent a3de167bc7
commit 72322836c6
5 changed files with 171 additions and 25 deletions

View file

@ -34,6 +34,8 @@ using namespace std;
#include <unistd.h>
#include <netinet/udp.h>
// Define macro for UDP GSO.
// @see https://github.com/torvalds/linux/blob/master/tools/testing/selftests/net/udpgso.c
#ifndef UDP_SEGMENT
#define UDP_SEGMENT 103
#endif