FaradayRF / faradayio

FaradayRF TUN/TAP adapter
https://www.faradayrf.com
GNU General Public License v3.0
15 stars 6 forks source link

Implement Asyncio Instead of Threads #23

Open kb1lqc opened 6 years ago

kb1lqc commented 6 years ago

There's no reason this needs to be threaded to properly check and send TUN packets. asyncio, pytest-asyncio, and pyserial-asyncio should be able to handle this very well. I previously tried to implement asyncio into the TUN adapter but it did not work out well. I was mainly hindered by the inability to test it since I want to maintain as much Test Driven Development as possible.

Timeline

This is not absolutely imperative but it would be a good idea to include it in before we get too far along. For now threads will likely work. This issue ticket is a good reminder that we should move towards newer technology when possible.