aboutsummaryrefslogtreecommitdiff
path: root/embassy-net/src/tcp.rs
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-061-2/+2
|
* Desugar some async fnsDániel Buga2024-12-301-28/+25
|
* chore: address some clippy issuesKrzysztof Królczyk2024-11-011-2/+2
| | | | Signed-off-by: Krzysztof Królczyk <[email protected]>
* feat(embassy-net): Implement `TcpReader::wait_read_ready()` + ↵Anthony Grondin2024-10-311-0/+20
| | | | `TcpWriter::wait_send_ready()`
* Merge pull request #3368 from AnthonyGrondin/mainDario Nieuwenhuis2024-10-211-3/+59
|\ | | | | | | 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
* | rustfmt for new nightly.Dario Nieuwenhuis2024-10-141-1/+4
| |
* | Update smoltcp, embedded-nal-async to use the `core::net` IP addr types.Dario Nieuwenhuis2024-10-071-8/+4
|/
* net: refactor to simplify lifetimes/generics.Dario Nieuwenhuis2024-09-161-34/+42
|
* 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
|
* net/tcp: fix flush() waiting forever if socket is reset with pending write dataSamuel Hicks2024-07-191-1/+1
|
* Allow setting socket timeout for embedded-nal TcpClient, such that every new ↵Mathias2024-07-171-1/+15
| | | | socket from that client gets the timeout
* 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
|
* add send_queue and recv_queuePhilip Reimer2024-06-051-0/+32
|
* impl ReadReady for tcp call can_recv() insted of may_recv()davidskula2024-05-071-2/+2
|
* net/tcp: fix flush() not waiting for ACK of FIN.Dario Nieuwenhuis2024-02-211-2/+8
|
* correct spelling of the word "receive"Stefan Gehr2024-02-031-2/+2
|
* feat: impl ReadReady and WriteReady for tcpswanandx2024-01-031-0/+24
|
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-2/+0
|
* Update heapless to v0.8, embedded-nal-async to v0.7Dario Nieuwenhuis2023-11-101-4/+1
|
* Ensure TcpIo not blocking when reading into empty sliceDániel Buga2023-11-061-0/+7
|
* net: remove atomic-polyfill.Dario Nieuwenhuis2023-10-121-8/+7
|
* Use fmt::unwrapDániel Buga2023-09-021-2/+2
|
* Merge pull request #1802 from avlec/error-translationDario Nieuwenhuis2023-08-181-2/+9
|\ | | | | | | Add error translation to tcp errors
| * add error translation to tcp errorsAlec Cox2023-08-181-2/+9
| | | | | | | | | | Translation of tpc client ConnectError and Error to the appropriate embedded_io_async errors
* | Add tcp capacity implsScott Mabin2023-08-151-0/+28
| |
* | embassy-net:tcp:send/recvScott Mabin2023-08-141-0/+102
|/ | | | - Add async versions of smoltcp's `send` and `recv` closure based API.
* Update to embedded-io 0.5 (#1752)Dario Nieuwenhuis2023-08-071-17/+17
|
* Merge branch 'main' into v4-optionalDario Nieuwenhuis2023-06-081-1/+9
|\
| * updated can_recv and may_recv to match the smoltcp functions.Russ Hewgill2023-06-061-1/+9
| |
* | net: StaticV4 config behind proto-ipv4Ruben De Smet2023-06-061-0/+3
|/
* net: Make flush() wait for RST packets from abort()Matt Johnston2023-05-251-3/+11
| | | | | Add docs to note that dropping a TcpSocket early will prevent the .abort() RST from being sent.
* net: document crate.Dario Nieuwenhuis2023-05-151-2/+85
|
* net: do not use smoltcp Instant/Duration in public API.Dario Nieuwenhuis2023-05-151-4/+8
|
* embassy-net: add flush to TcpSocket and TcpWriter as an inherent methodkbleeke2023-02-221-0/+8
|
* Implement flush for TcpSocketkbleeke2023-02-221-3/+12
|
* Pass the correct buffer when creating TcpSocketUlf Lilleengen2023-01-311-1/+1
|
* net: split driver trait to a separate crate.Dario Nieuwenhuis2022-12-261-6/+6
|
* net: use atomic-polyfill on tcp client pool, for thumbv6m support.Dario Nieuwenhuis2022-12-261-1/+1
|
* Remove unnecessary use of atomic-polyfill.Dario Nieuwenhuis2022-12-231-1/+1
| | | | Only use it when CAS is actually needed.
* net: move stack into lib.rsDario Nieuwenhuis2022-12-131-2/+1
|
* net: remove packet pool.Dario Nieuwenhuis2022-12-131-1/+1
| | | | | | | | | | | | | | The pool was prone to deadlocks, especially due to having a single pool for rx+tx. If the pool got full with rx'd packets it would deadlock because processing a rx packet requires doing another allocation on the pool, for the possibly tx'd response, before deallocating the rx'd packet. This also allows Device impls to allocate the packet memory in a particular RAM kind, if needed for example to do DMA. The `Device` trait is now token-based, like smoltcp's. In the end, this is better because it allows callers to manage memory however they want (including with a pool if they want to).
* net: update smoltcpDario Nieuwenhuis2022-12-071-1/+4
|
* net: don't use UnsafeCell.Dario Nieuwenhuis2022-12-031-33/+26
| | | | | | 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.
* Switch to async-fn-in-traitDario Nieuwenhuis2022-11-251-79/+41
|