forked from libuv/libuv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
darwin: add udp mmsg support (libuv#4527)
- Loading branch information
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef UV_DARWIN_SYSCALLS_H_ | ||
#define UV_DARWIN_SYSCALLS_H_ | ||
|
||
#include <sys/types.h> | ||
#include <sys/socket.h> | ||
|
||
/* https://github.com/apple/darwin-xnu/blob/master/bsd/sys/socket.h */ | ||
|
||
struct mmsghdr { | ||
struct msghdr msg_hdr; | ||
size_t msg_len; | ||
}; | ||
|
||
ssize_t recvmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags); | ||
ssize_t sendmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags); | ||
|
||
#endif /* UV_DARWIN_SYSCALLS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters