diff options
author | Guo Ren <ren_guo@c-sky.com> | 2017-09-27 13:31:35 +0800 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-10-01 08:54:33 +0200 |
commit | 6e15fafa20066634a58d412b259b117a47ca46d1 (patch) | |
tree | 78e2bfabc8a9b13926c93bf12d1e35aba14abe78 /libc/inet/sendmmsg.c | |
parent | 7cfd2112acbc7a9dfcd9f8a23e550672934a2545 (diff) |
recvmmsg/sendmmsg: add recvmmsg sendmmsg support.
The recvmmsg and sendmmsg is very important for UDP stream application.
If we only use recvmsg for UDP stream, it will only copy one mtu size
of data in a syscall. And recvmmsg copy as many as you want in a syscall.
So recvmmsg is more efficient,and some applications will depends on the
recvmmsg and sendmmsg, eg: UDP media stream player.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'libc/inet/sendmmsg.c')
-rw-r--r-- | libc/inet/sendmmsg.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/inet/sendmmsg.c b/libc/inet/sendmmsg.c new file mode 100644 index 000000000..f1557fe2f --- /dev/null +++ b/libc/inet/sendmmsg.c @@ -0,0 +1,8 @@ +/* + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#define L_sendmmsg +#include "socketcalls.c" |