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
|
@ -409,7 +409,7 @@ int srs_sendmsg(srs_netfd_t stfd, const struct msghdr *msg, int flags, srs_utime
|
|||
|
||||
int srs_sendmmsg(srs_netfd_t stfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, srs_utime_t timeout)
|
||||
{
|
||||
#if defined(SRS_AUTO_OSX)
|
||||
#if defined(SRS_AUTO_OSX) || !defined(SRS_AUTO_SENDMMSG)
|
||||
// @see http://man7.org/linux/man-pages/man2/sendmmsg.2.html
|
||||
for (int i = 0; i < (int)vlen; ++i) {
|
||||
struct mmsghdr* p = msgvec + i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue