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

# BroadcastAddress(3cc)

The broadcast address object is used to store the broadcast address for a specific subnet.

## NAME

BroadcastAddress - The broadcast address object is used to store the broadcast address for a specific subnet.

## SYNOPSIS

`#include <socket.h>`

Inherits **InetAddress**.

### Public Methods

**BroadcastAddress** (const char \*net='255.255.255.255')\
 *Specify the physical broadcast address to use and create a new broadcast address object based on a null terminated ASCII string.*

## DETAILED DESCRIPTION

The broadcast address object is used to store the broadcast address for a specific subnet.

This is commonly used for UDP broadcast operations.

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### BroadcastAddress::BroadcastAddress (const char \* net = '255.255.255.255')

Specify the physical broadcast address to use and create a new broadcast address object based on a null terminated ASCII string.

**Parameters:**

- *net*

  *null terminated ASCII network address.*

## AUTHOR

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