aboutsummaryrefslogtreecommitdiff
path: root/embassy-net
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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-213-1/+35
| |
* | 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-073-19/+14
|/
* 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-168-361/+316
|
* 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.
* feat(mdns): Enable mdns support through smoltcpAnthony Grondin2024-08-161-0/+2
|
* 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
| |
* | Prepare embassy-time releaseUlf Lilleengen2024-08-051-1/+1
| |
* | 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.
* Add check for closed connection to `read_ready()`trepidacious2024-06-301-1/+1
|
* Fix typo in READMEEli Hastings2024-06-241-1/+1
|
* Add collapse_debuginfo to fmt.rs macros.Dario Nieuwenhuis2024-06-171-0/+17
| | | | | | This makes location info in defmt logs point to the code calling the macro, instead of always to fmt.rs as before. Fix works with nightlies starting with today's, and stable 1.81+.
* dns: properly handle AddrType::Either in get_host_by_name()Aurélien Jacobs2024-06-111-4/+19
|
* add send_queue and recv_queuePhilip Reimer2024-06-051-0/+32
|
* prepare for embassy-time 0.3.1 releaseUlf Lilleengen2024-06-041-1/+1
|
* Prepare for embassy-sync 0.6.0 releaseUlf Lilleengen2024-05-291-1/+1
|
* impl ReadReady for tcp call can_recv() insted of may_recv()davidskula2024-05-071-2/+2
|
* Removes some unused dependencies in embedded-net.onestacked2024-05-051-4/+0
|
* Reduce use of the full `futures` crate.Dario Nieuwenhuis2024-04-262-4/+2
|
* 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
* Merge branch 'main' into prep-embedded-nal-async-udpchrysn2024-04-194-4/+128
|\
| * Fix spelling and white space mistakesVega Deftwing2024-04-111-2/+2
| |
| * Removed generic type parameter.Gustav Toft2024-04-111-1/+1
| |
| * Removed Result for send and poll_send.Gustav Toft2024-04-111-3/+3
| |
| * Fixed commented issues.Gustav Toft2024-04-103-65/+7
| |
| * Merge branch 'main' of https://github.com/GustavToft/embassyGustav Toft2024-04-041-2/+1
| |\
| * | Implement raw sockets in embassy-netGustav Toft2024-04-043-2/+184
| | |
* | | 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).
* | fmt: disable "unused" warnings.Dario Nieuwenhuis2024-03-201-2/+1
|/
* net/tcp: fix flush() not waiting for ACK of FIN.Dario Nieuwenhuis2024-02-211-2/+8
|
* net: enable dhcpv4-hostname feature in docs.Dario Nieuwenhuis2024-02-121-2/+2
|
* correct spelling of the word "receive"Stefan Gehr2024-02-031-2/+2
|
* Complete cargo.tomls more.Dario Nieuwenhuis2024-01-121-0/+1
|
* bump embassy-time 0.3, embassy-executor 0.5, embassy-net 0.4.Dario Nieuwenhuis2024-01-112-2/+6
|