---
name: "InetMcastAddress"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/InetMcastAddress"
---

# InetMcastAddress(3cc)

A specialization of InetAddress that provides address validation for multicast addresses. A multicast network address.

## NAME

InetMcastAddress - A specialization of **InetAddress** that provides address validation for multicast addresses. A multicast network address.

## SYNOPSIS

`#include <socket.h>`

Inherits **InetAddress**.

### Public Methods

**InetMcastAddress** ()\
 *Create an Internet Multicast Address object with an empty (0.0.0.0) address.* **InetMcastAddress** (const struct in\_addr address)\
 *Convert the system internet address data type (struct in\_addr) into a Common C++ InetMcastAddress object.* **InetMcastAddress** (const char \*address)\
 *Convert a null terminated ASCII multicast address string (example: '224.0.0.1') or multicast name string (example: 'sap.mcast.net') directly into a Common C++ InetMcastAddress object.*

## DETAILED DESCRIPTION

A specialization of **InetAddress** that provides address validation for multicast addresses. A multicast network address.

Whenever its value changes the new value is checked to be in the range from 224.0.0.1 through 239.255.255.255. If it is not, an exception is thrown.

**Author:**  Federico Montesino \<p5087@quintero.fie.us.es\>

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### InetMcastAddress::InetMcastAddress ()

Create an Internet Multicast Address object with an empty (0.0.0.0) address.

### InetMcastAddress::InetMcastAddress (const struct in\_addr address)

Convert the system internet address data type (struct in\_addr) into a Common C++ InetMcastAddress object.

**Parameters:**

- *address*

  *struct of system used binary internet address.*

### InetMcastAddress::InetMcastAddress (const char \* address)

*Convert a null terminated ASCII multicast address string (example: '224.0.0.1') or multicast name string (example: 'sap.mcast.net') directly into a Common C++ InetMcastAddress object.*

*Works like* **InetAddress***(const char\*).*

**Parameters:**

- *address*

  *null terminated C string.*

## AUTHOR

*Generated automatically by Doxygen for CommonC++ from the source code.*
