aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src
Commit message (Collapse)AuthorAgeFilesLines
* Update to embedded-io 0.7Dario Nieuwenhuis2025-12-191-0/+16
|
* feat: add set_nagle_enabled to TcpSocketMatthias Behr2025-11-081-0/+14
| | | | | Adding fn TcpSocket::set_nagle_enable to control the nagle algorithm for this socket.
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-065-6/+6
|
* Edition 2024.Dario Nieuwenhuis2025-10-061-0/+1
|
* executor: return error when creating the spawntoken, not when spawning.Dario Nieuwenhuis2025-08-291-1/+1
|
* add missing PartialEq and Eq trait derives to embassy-net config structskorbin2025-07-271-3/+3
|
* add embassy-net defmt derives for config structskorbin2025-07-261-0/+6
|
* net: correct `UdpSocket::recv_from_with` docsSam W2025-07-031-1/+1
|
* feat: Feature match udp socketsskkeye2025-02-131-47/+186
| | | | fix: fixed compile proto-ipv4/v6 edge cases in the ping module
* fix: forgot fmtskkeye2025-02-131-3/+3
|
* feat: configurable rate_limit for the ping utilityskkeye2025-02-131-2/+17
|
* fix: nightly fmtskkeye2025-02-132-18/+19
|
* embassy-net: add ICMP sockets and a ping utilityskkeye2025-02-132-0/+706
|
* 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-303-48/+46
|
* Remove useless std cargo features.Dario Nieuwenhuis2024-12-251-1/+1
|
* fix(embassy-net): make the `Config` constructors `const`ROMemories2024-12-101-3/+3
|
* chore: address some clippy issuesKrzysztof Królczyk2024-11-012-21/+19
| | | | Signed-off-by: Krzysztof Królczyk <[email protected]>
* chore: improve some log msgsKrzysztof Królczyk2024-11-012-4/+4
| | | | Signed-off-by: Krzysztof Królczyk <[email protected]>
* feat(embassy-net): Implement `wait_send_ready()` + `wait_recv_ready()` for ↵Anthony Grondin2024-10-311-0/+53
| | | | Raw sockets.
* feat(embassy-net): Implement `TcpReader::wait_read_ready()` + ↵Anthony Grondin2024-10-311-0/+20
| | | | `TcpWriter::wait_send_ready()`
* Made import private again.Frostie3141592024-10-301-1/+1
|
* Reexported some smoltcp types for raw socket.Frostie3141592024-10-291-2/+2
|
* Merge pull request #3368 from AnthonyGrondin/mainDario Nieuwenhuis2024-10-212-3/+112
|\ | | | | | | 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_read_ready()` + `wait_write_ready()` for ↵Anthony Grondin2024-09-241-2/+44
| | | | | | | | TcpSocket
| * docs(embassy-net): Update can_send() and may_send() documentation to reflect ↵Anthony Grondin2024-09-241-1/+15
| | | | | | | | actual behavior from smoltcp
| * 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-212-0/+34
| |
* | rustfmt for new nightly.Dario Nieuwenhuis2024-10-142-3/+12
| |
* | Update smoltcp, embedded-nal-async to use the `core::net` IP addr types.Dario Nieuwenhuis2024-10-072-17/+12
|/
* net: add all combinations of wait methods for link/config up/down.Dario Nieuwenhuis2024-09-181-12/+28
|
* net: refactor to simplify lifetimes/generics.Dario Nieuwenhuis2024-09-166-355/+309
|
* Merge pull request #3277 from dvdsk/mainDario Nieuwenhuis2024-09-101-0/+19
|\ | | | | | | embassy-net/read document return value Ok(0)
| * embassy-net: fix/clearify TcpReader docs. Expand docs on timeoutsdvdsk2024-08-231-4/+17
| |
| * embassy-net/read document return value Ok(0)dvdsk2024-08-231-0/+6
| |
* | 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.
* Merge pull request #3198 from sammhicks/mainDario Nieuwenhuis2024-08-131-1/+1
|\ | | | | | | net/tcp: fix flush() waiting forever if socket is reset with pending write data
| * net/tcp: fix flush() waiting forever if socket is reset with pending write dataSamuel Hicks2024-07-191-1/+1
| |
* | examples: ensure at least 3 sockets to avoid running out (DHCP, DNS, the user's)Dario Nieuwenhuis2024-08-071-2/+5
| |
* | Merge pull request #3219 from mirkomartn/bound-dns-serversDario Nieuwenhuis2024-07-291-3/+13
|\ \ | |/ |/| | | embassy-net: dns: bound the dns_servers slice
| * embassy-net: dns: bound the dns_servers sliceGasper Stukelj2024-07-291-3/+13
| | | | | | | | | | | | | | | | | | | | `smoltcp::socket::dns::Socket::update_servers()` will panic if a slice exceeding a fixed length is passed to it. This is can be especially inconvenient when using DHCP config. Avoid panicking by using at most `DNS_MAX_SERVER_COUNT` DNS servers from the config.
* | Merge pull request #3186 from MathiasKoch/embassy-net/socket-timeoutDario Nieuwenhuis2024-07-181-1/+15
|\ \ | | | | | | | | | (embassy-net): Allow setting socket timeout for embedded-nal TcpClient
| * | Allow setting socket timeout for embedded-nal TcpClient, such that every new ↵Mathias2024-07-171-1/+15
| |/ | | | | | | socket from that client gets the timeout
* | Merge pull request #3191 from mirkomartn/fix-docDario Nieuwenhuis2024-07-181-1/+1
|\ \ | | | | | | | | | embassy-net: fix minor typo in doc
| * | embassy-net: fix minor typo in docGasper Stukelj2024-07-181-1/+1
| |/
* / Reduced define for 'unreachable!' to a single macro ruleTarun Singh2024-07-171-10/+6
|/
* Update `ReadReady` and `WriteReady` implementationstrepidacious2024-07-011-3/+3
| | | | | Update `ReadReady` for `TcpReader` to match implementation for `TcpSocket` Update `WriteReady` implementations to use `can_recv()` rather than `may_recv()`, since this will check that the transmit buffer is not full.