Re:Libdill: Structured Concurrency for C (2016)
by rumcajz on Thursday December 21, 2017 @11:37AM
(#15980229)
The socket functions were once in a separate library but it's just easier to use like this. Linking with 1 library, not having to care about version mismatches etc.
My recommendation would be to just not use the socket functions and link with the library stitically. That way the unused code will be discarded.
As for hclose() that was just mimicking the POSIX close() function.
About your API though.
Why is there a load of inet/ip/socket functions, shouldn't they be in a separate lib? Why is the opposite of the fn int go(expr) the fn int hclose(int) and not the fn int stop(int) or something like it. open/close – go/stop – and so on …