---
name: "sc_BcastStateRecv"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_BcastStateRecv"
---

# sc\_BcastStateRecv(3)

BcastStateRecv does the receive part of a broadcast of an object to all nodes.

## NAME

sc::BcastStateRecv - **BcastStateRecv** does the receive part of a broadcast of an object to all nodes.

## SYNOPSIS

`#include <mstate.h>`

Inherits **sc::MsgStateRecv**.

### Public Member Functions

**BcastStateRecv** (const **Ref**\< **MessageGrp** \> &, int **source**=0)\
 Create the **BcastStateRecv**.  void **source** (int s)\
 Set the source node.

### Protected Member Functions

void **next\_buffer** ()\
 Specializations must implement **next\_buffer()**.

### Protected Attributes

int **source\_**\

## Detailed Description

**BcastStateRecv** does the receive part of a broadcast of an object to all nodes.

Only one node uses a **BcastStateSend** and the rest must use a **BcastStateRecv**.

## Member Function Documentation

### void sc::BcastStateRecv::next\_buffer ()` [protected]`, ` [virtual]`

Specializations must implement **next\_buffer()**.

Implements **sc::MsgStateBufRecv**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
