mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #307, support configure with sendmmsg.
This commit is contained in:
parent
b23525033b
commit
dc3df926eb
8 changed files with 56 additions and 15 deletions
2
trunk/3rdparty/st-srs/io.c
vendored
2
trunk/3rdparty/st-srs/io.c
vendored
|
@ -743,6 +743,7 @@ int st_sendmsg(_st_netfd_t *fd, const struct msghdr *msg, int flags, st_utime_t
|
|||
}
|
||||
|
||||
|
||||
#if defined(MD_HAVE_SENDMMSG) && defined(_GNU_SOURCE)
|
||||
int st_sendmmsg(st_netfd_t fd, struct mmsghdr *msgvec, unsigned int vlen, int flags, st_utime_t timeout)
|
||||
{
|
||||
int n;
|
||||
|
@ -772,6 +773,7 @@ int st_sendmmsg(st_netfd_t fd, struct mmsghdr *msgvec, unsigned int vlen, int fl
|
|||
}
|
||||
return (int)vlen - left;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue