Quicr / new-qmsg

Messaging example on top of QuicR
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Add utilities for nonblocking IO #28

Closed bifurcation closed 2 years ago

bifurcation commented 2 years ago

The File class provided by Rust is blocking by default. In order to get non-blocking IO, we need to either (a) move to Tokio or (b) do some unsafe libc calls. Tokio would take us farther away from the normal design patterns on embedded, so this PR embeds just enough libc to do the nonblocking / select stuff we need. This should be sufficient to get us started writing real apps.