Protocol for Stream object creation

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
domcharn
Posts: 3
Joined: Fri Nov 17, 2017 6:11 am

Protocol for Stream object creation

Post by domcharn » Sat Jan 27, 2018 2:13 pm

Hello,
is there a mean to implement stream objects (with ioctl method), letting possible to register them in u.select.pool() like sockets in add_writer (from uasyncio)?
( objective to create a scheduler of asyncio tasks by activating them through the iotcl values managment of these stream objects )
Thanks for your attention
DC

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Protocol for Stream object creation

Post by pythoncoder » Sun Jan 28, 2018 11:00 am

You might like to read this thread especially the final commant from @pfalcon. tl;dr It can be done, but only in C.
Peter Hinch
Index to my micropython libraries.

Post Reply