# otSrpClientHostInfo Struct Reference

# otSrpClientHostInfo


`#include <openthread/srp_client.h>`

Represents an SRP client host info.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-srp-client-host-info#structot_srp_client_host_info_1ab44b86be735a1b0d30ed8159e6565de5` | `const https://openthread.io/reference/struct/ot-ip6-address *` Array of host IPv6 addresses (NULL if not set or auto address is enabled). |
| `https://openthread.io/reference/struct/ot-srp-client-host-info#structot_srp_client_host_info_1a99cd7d3097c1f1d5023a8beace65d362` | `bool` Indicates whether auto address mode is enabled or not. |
| `https://openthread.io/reference/struct/ot-srp-client-host-info#structot_srp_client_host_info_1a9fa054e70ac4d07a8ae907cf3dda3ba7` | `const char *` Host name (label) string (NULL if not yet set). |
| `https://openthread.io/reference/struct/ot-srp-client-host-info#structot_srp_client_host_info_1acdc03dd83f3fc0d6f46381102c291ac8` | `uint8_t` Number of IPv6 addresses in `mAddresses` array. |
| `https://openthread.io/reference/struct/ot-srp-client-host-info#structot_srp_client_host_info_1a39b19aa22df48093af8fc0b331944252` | `https://openthread.io/reference/group/api-srp#group__api-srp_1ga4282c995a78d63a59e930f4a67f07e41` Host info state. |

## Public attributes

### mAddresses

```
const otIp6Address * otSrpClientHostInfo::mAddresses
```
Array of host IPv6 addresses (NULL if not set or auto address is enabled).

### mAutoAddress

```
bool otSrpClientHostInfo::mAutoAddress
```
Indicates whether auto address mode is enabled or not.

### mName

```
const char * otSrpClientHostInfo::mName
```
Host name (label) string (NULL if not yet set).

### mNumAddresses

```
uint8_t otSrpClientHostInfo::mNumAddresses
```
Number of IPv6 addresses in `mAddresses` array.

### mState

```
otSrpClientItemState otSrpClientHostInfo::mState
```
Host info state.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).