[systemd-devel] Thoughts on adapting daemons to use socket activation

David Strauss david at davidstrauss.net
Tue Aug 21 14:26:52 PDT 2012


On Tue, Aug 21, 2012 at 8:37 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> Right now we do offer calls that can match file descriptors against
> (parts of) socket addresses. If an app wants to query the current bound
> adress it can call getsockname(), but yupp, raw socket API calls are
> sometimes a bit ugly. Do you have any particular call in mind you'd like
> to see added to sd-daemon.[ch]?
>
> [snip]
>
> But that's what getsockname() does. Do you need more?

I'll take a fresh look at these options. I'm pretty new to C-based
socket programming, so I'm not surprised if I overlooked something you
might consider obvious.

-- 
David Strauss
   | david at davidstrauss.net


More information about the systemd-devel mailing list