16 Feb 2024 |
talizkahn | ok cool. I think my problem is that the receive() wont block, but returns tokens no matter what. The consume wont block, but there may not be anything to do | 20:13:50 |
talizkahn | I'll refactor a bit and see how I go | 20:14:01 |
talizkahn | thanks for your help | 20:14:07 |
talizkahn | its looking a lot healthier now :) | 20:28:39 |
talizkahn | I see that tcp::Socket is Sync and Send , is it a common/done pattern to send ESTABLISHED sockets to another thread to process and add a new LISTENING socket to the SockerSet ? | 22:24:37 |
dirbaio | you can't send it because it must be inside the SocketSet to get processed | 22:25:38 |
dirbaio | you can share the SocketSet behind a mutex | 22:26:02 |
dirbaio | but it's probably not worth it, it won't increase perf much | 22:26:54 |
talizkahn | Just looking for a pattern to handle multiple connections | 22:27:32 |
dirbaio | a big main loop polling everything | 22:27:49 |
dirbaio | if that's too annoying, there's async wrappers, for example embassy-net . where you can spawn one task per connection | 22:28:25 |
dirbaio | * if that's too annoying, there's async wrappers, for example embassy-net . where you can spawn one async task per connection | 22:28:31 |
dirbaio | all tasks still running in a single-thread executor | 22:28:34 |
dirbaio | so no mutex overheads | 22:28:37 |
talizkahn | Cool, thanks for the pointers | 22:42:06 |
18 Feb 2024 |
smoltcp-bot | New PR: feat(congestion control): add CongestionControler tairt and example impl | 11:15:20 |
19 Feb 2024 |
| Oddstr13 changed their profile picture. | 23:59:04 |
24 Feb 2024 |
| @lovesabugopeludo:matrix.org changed their display name from menino putinha de 14 anos to Love pedomoms (14). | 21:47:43 |
25 Feb 2024 |
| @lovesabugopeludo:matrix.org left the room. | 17:52:22 |
| Catherine banned @lovesabugopeludo:matrix.org. | 17:52:26 |
3 Mar 2024 |
| @murjw:matrix.org joined the room. | 05:51:52 |
| @murjw:matrix.org left the room. | 06:59:50 |
4 Mar 2024 |
| @eddy345:matrix.org left the room. | 11:40:25 |
| @avery71:matrix.org joined the room. | 21:24:08 |
@avery71:matrix.org | are there any examples of using smoltcp to make a router? I do see that there is a routing struct. | 21:27:12 |
dirbaio | smoltcp supports a single network interface only | 21:29:25 |
dirbaio | (you can use multiple interfaces by creating multiple smoltcp instances, but they're separate universes: it won't route things between the interfaces for you) | 21:30:12 |
@avery71:matrix.org | I think I can make it work | 21:32:51 |
@avery71:matrix.org | what about a dhcp server? I do see the example for a dhcp client | 21:36:19 |
dirbaio | not supported | 21:37:25 |