HH\Lib\OS\inet_pton_inet

Facebook Engineer?

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

Convert a presentation-format (dotted) INET (IPv4)) address to network format

namespace HH\Lib\OS;

function inet_pton_inet(
  string $addr,
): in_addr;

See man inet_pton.

Parameters

  • string $addr

Returns

  • in_addr