A lot of the macOS networking stack (at a lower level) comes from FreeBSD.
Yeah, but they added a bunch of high-level abstractions on top over the years. Nowadays it's much closer to the way you do networking on mobile operating systems like iOS and Android.
I’m a Ruby developer but I tried to port a Linux application written in C to macOS before and it was mostly rearranging positional arguments to system API calls
But I imagine the Ruby standard library also takes away a lot of the complexity, right?
There's also qBitControl for iOS btw. But you have to sideload it using AltStore (which is pretty easy if you're in the EU).