HH\Lib\OS\inet_pton_inet6

Facebook Engineer?

This function is available as OS\inet_pton_inet6() in Facebook's www repository.

Convert a presentation-format (colon-separated) INET6 (IPv6) address to network format

namespace HH\Lib\OS;

function inet_pton_inet6(
  string $addr,
): in6_addr;

See man inet_pton.

Parameters

  • string $addr

Returns

  • in6_addr