aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/udp.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-1/+1
|
* net: correct `UdpSocket::recv_from_with` docsSam W2025-07-031-1/+1
|
* don't mention Poll::Ready for async fns as it's impliedEasyoakland2025-01-261-2/+2
|
* update comments to match codeEasyoakland2025-01-261-3/+3
|
* - use `with`Easyoakland2025-01-261-9/+5
| | | | - rename to Truncated to `PacketTooLarge`
* don't infinite loop if udp::send methods receive a buffer too large to ever ↵Easyoakland2025-01-241-2/+26
| | | | be sent
* Desugar some async fnsDániel Buga2024-12-301-10/+12
|
* Merge pull request #3368 from AnthonyGrondin/mainDario Nieuwenhuis2024-10-211-0/+53
|\ | | | | | | feat(embassy-net): Implement `wait_recv_ready()` + `wait_send_ready()` for UdpSocket and `wait_read_ready()` + `wait_write_ready()` for TcpSocket
| * feat(embassy-net): Implement `wait_recv_ready()` + `wait_send_ready()` for ↵Anthony Grondin2024-09-241-0/+53
| | | | | | | | | | | | | | | | | | | | UdpSocket - Provides `pub async fn wait_recv_ready(&self) -> ()` and `pub fn poll_recv_ready(&self, cx: &mut Context<'_>) -> Poll<()>`. This allows polling / waiting on a socket until it can be read, without dequeuing any packets. - Provides `pub async fn wait_send_ready(&self) -> ()` and `pub fn poll_send_ready(&self, cx: &mut Context<'_> -> Poll<()>` This allows polling / waiting on a socket until it becomes writable.
* | net: Add flush for UDP and Raw sockets.Fan Jiang2024-10-211-0/+17
|/
* net: refactor to simplify lifetimes/generics.Dario Nieuwenhuis2024-09-161-31/+32
|
* feat(embassy-net): add zero-copy UDP send/recv functionsCirrus2024-08-251-0/+63
| | | | | | | | | Added recv_from_with and send_to_with. These are conceptually similar to TCP's read_with and write_with functions. An application can parse received datagrams directly out of the receive buffer or assemble a datagram of known-length directly into the send buffer.
* fixup! net/udp: Relay full UdpMetadata instead of only remote endpoint in ↵chrysn2024-04-191-1/+1
| | | | poll_ functions
* fixup! net/udp: Relay full UdpMetadata instead of only remote endpoint in ↵chrysn2024-04-191-2/+2
| | | | poll_ functions
* fixup! net/udp: Relay full UdpMetadata instead of only remote endpoint in ↵chrysn2024-04-151-4/+2
| | | | poll_ functions
* net/udp: Relay full UdpMetadata instead of only remote endpoint in poll_ ↵chrysn2024-04-081-5/+11
| | | | | | | | functions This is a breaking change for users of the poll_ functions. (Some might not notice if they already pass in an IpEndpoint into poll_send_to, or discard that item in poll_recv_from).
* Add set_hop_limit to UDP socketsLoïc Damien2023-12-281-0/+5
|
* Upgrade to smoltcp v0.11.Dario Nieuwenhuis2023-12-231-8/+17
|
* add SocketNotBound error messageJuliDi2023-09-101-1/+10
|
* Add udp capacity implsScott Mabin2023-08-151-0/+20
|
* fmtRoy Buitenhuis2023-07-121-9/+9
|
* Add polling fn's for send_to and recv_from in UdpSocket.Roy Buitenhuis2023-07-121-4/+23
|
* Add poll functions on UdpSocket.Roy Buitenhuis2023-07-121-21/+26
|
* Update smoltcp.Dario Nieuwenhuis2023-06-261-1/+1
|
* net: document crate.Dario Nieuwenhuis2023-05-151-0/+19
|
* net: reexport UDP PacketMetadata under the udp module.Dario Nieuwenhuis2023-05-151-1/+2
|
* Wait for waker when no data is available on UDP socket.Roy Buitenhuis2023-03-151-2/+1
|
* net: split driver trait to a separate crate.Dario Nieuwenhuis2022-12-261-2/+3
|
* net: move stack into lib.rsDario Nieuwenhuis2022-12-131-2/+1
|
* net: don't use UnsafeCell.Dario Nieuwenhuis2022-12-031-24/+17
| | | | | | The "must not be called reentrantly" invariant is too "global" to maintain comfortably, and the cost of the RefCell is negligible, so this was a case of premature optimization.
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-1/+1
|
* Remove UdpIo structArtur Kowalski2022-08-111-57/+41
| | | | | UdpIo was shared by split sender/receives halves. Since split() API is no more UdpIo is not needed and its APIs may be moved into UdpSocket.
* Simplify UDP codeArtur Kowalski2022-08-111-59/+5
| | | | | Drop unneeded APIs: remove impls of embedded_io error traits, remove flush() and split() methods.
* Add UDP socket supportArtur Kowalski2022-08-101-0/+227