wget2: IP address functions

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

Functions
IP address functions

## Functions
bool | wget_ip_is_family (const char *host, int family)

## Detailed Description

Routines to check IP address formats.

## Function Documentation

## ◆ wget_ip_is_family()

bool wget_ip_is_family | ( | const char * | host,
|  | int | family
| ) |  |

Parameters

  [in] | host | Host/IP string
  [in] | family | IP address family

Returns
  1 if `host` matches is of `family`
  0 if `host` does not match `family`

This functions checks if `host` matches the given `family` or not.