HH\Lib\OS\inet_pton_inet6

Facebook Engineer?

This is available as OS\inet_pton_inet6 in the 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