[libmill] Re: Address resolution separated from TCP/UDP

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: libmill@xxxxxxxxxxxxx
  • Date: Fri, 31 Jul 2015 18:59:08 +0200

On 2015-07-31 13:38, Joseph Stewart wrote:

This is a nice idea.

Is the intention to allow one to plug a custom name lookup mechanism into
libmill (with perhaps providing a default mechanism)?

ipaddr is actually a union of sockaddr_in and sockaddr_in6 so you
can simply cast it to the appropriate type and fill it in in any way tou like.


But my use case was a bit different. Specifically, for UDP, IP address is supplied/provided with each packet and doing conversions to string (not even speaking of DNS queries) is not viable from the performance point of view.

Martin

Other related posts: