title: how to bind a link local address to an ipv6 socket
body: <p>This question can be treated as a sister question of <a href="https://stackoverflow.com/questions/2455762/why-cant-i-bind-ipv6-socket-to-a-linklocal-address">previous one</a> posted by myself. It is very tedious that when you want to bind a link local address to an IPv6 socket, you need to set the <code>sin6_scope_id</code> field of the <code>sockaddr_in6</code> struct. I'm wondering if someone can provide a solution following good practice.</p>