@@ -13,10 +13,12 @@ pub use imp::net::send_recv::{RecvFlags, SendFlags};
1313/// # References
1414/// - [POSIX]
1515/// - [Linux]
16+ /// - [Apple]
1617/// - [Winsock2]
1718///
1819/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recv.html
1920/// [Linux]: https://man7.org/linux/man-pages/man2/recv.2.html
21+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recv.2.html
2022/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recv
2123#[ inline]
2224pub fn recv < Fd : AsFd > ( fd : Fd , buf : & mut [ u8 ] , flags : RecvFlags ) -> io:: Result < usize > {
@@ -28,10 +30,12 @@ pub fn recv<Fd: AsFd>(fd: Fd, buf: &mut [u8], flags: RecvFlags) -> io::Result<us
2830/// # References
2931/// - [POSIX]
3032/// - [Linux]
33+ /// - [Apple]
3134/// - [Winsock2]
3235///
3336/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/send.html
3437/// [Linux]: https://man7.org/linux/man-pages/man2/send.2.html
38+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/send.2.html
3539/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send
3640#[ inline]
3741pub fn send < Fd : AsFd > ( fd : Fd , buf : & [ u8 ] , flags : SendFlags ) -> io:: Result < usize > {
@@ -44,10 +48,12 @@ pub fn send<Fd: AsFd>(fd: Fd, buf: &[u8], flags: SendFlags) -> io::Result<usize>
4448/// # References
4549/// - [POSIX]
4650/// - [Linux]
51+ /// - [Apple]
4752/// - [Winsock2]
4853///
4954/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvfrom.html
5055/// [Linux]: https://man7.org/linux/man-pages/man2/recvfrom.2.html
56+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/recvfrom.2.html
5157/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-recvfrom
5258#[ inline]
5359pub fn recvfrom < Fd : AsFd > (
@@ -64,9 +70,13 @@ pub fn recvfrom<Fd: AsFd>(
6470/// # References
6571/// - [POSIX]
6672/// - [Linux]
73+ /// - [Apple]
74+ /// - [Winsock2]
6775///
6876/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html
6977/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html
78+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html
79+ /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto
7080pub fn sendto < Fd : AsFd > (
7181 fd : Fd ,
7282 buf : & [ u8 ] ,
@@ -94,9 +104,13 @@ fn _sendto(
94104/// # References
95105/// - [POSIX]
96106/// - [Linux]
107+ /// - [Apple]
108+ /// - [Winsock2]
97109///
98110/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html
99111/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html
112+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html
113+ /// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto
100114pub fn sendto_any < Fd : AsFd > (
101115 fd : Fd ,
102116 buf : & [ u8 ] ,
@@ -126,10 +140,12 @@ fn _sendto_any(
126140/// # References
127141/// - [POSIX]
128142/// - [Linux]
143+ /// - [Apple]
129144/// - [Winsock2]
130145///
131146/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html
132147/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html
148+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html
133149/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto
134150#[ inline]
135151#[ doc( alias = "sendto" ) ]
@@ -148,10 +164,12 @@ pub fn sendto_v4<Fd: AsFd>(
148164/// # References
149165/// - [POSIX]
150166/// - [Linux]
167+ /// - [Apple]
151168/// - [Winsock2]
152169///
153170/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html
154171/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html
172+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html
155173/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto
156174#[ inline]
157175#[ doc( alias = "sendto" ) ]
@@ -170,10 +188,12 @@ pub fn sendto_v6<Fd: AsFd>(
170188/// # References
171189/// - [POSIX]
172190/// - [Linux]
191+ /// - [Apple]
173192/// - [Winsock2]
174193///
175194/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html
176195/// [Linux]: https://man7.org/linux/man-pages/man2/sendto.2.html
196+ /// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/sendto.2.html
177197/// [Winsock2]: https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto
178198#[ cfg( unix) ]
179199#[ inline]
0 commit comments