Do I understand correctly that there can be only one instance of a module? Why then use string identifiers instead of an enum?
Do I understand correctly that there can be only one instance of a module? Why then use string identifiers instead of an enum?
String identifiers are human friendly; moreover i can't see how an enum could fit there, care to explain? Thanks! Btw you can have same module name in different contexts.
That would be less dynamic, but it's all a game of tradeoffs.
It could be beneficial to also support poll, as it's more portable and should be faster for low fd number. Probably not worth the hassle for a side project though.
BTW: nice clean and simple library. I'm more inclined towards libdill and coroutines, but they are certainly more complicated under the hood.
Yes, that surely would work out pretty well and would be slightly lighter too. But it would lack flexibility and simplicity that are my key points for libmodule.
Thanks for your suggestion and feedback though, they are really appreciated. And thanks for the hint on recv(), how could i miss that!