public

Inheritance Graph

graph BT
	DataBroadcaster
	DataBroadcaster --> ReferenceCounter
	click DataBroadcaster "classUtil_1_1Network_1_1DataBroadcaster"
	click ReferenceCounter "classUtil_1_1ReferenceCounter"

Description

Broadcasts data to a set of DataConnections.

Note: The DataConnections can at the same time used for other communications.

Note: A closed DataConnection is automatically removed if it is closed.

Note: Deleting a DataBroadcaster does not automatically close the assciated connections. [ DataBroadcaster ]

Public Types

   
   
typedef DataConnection::dataPacket_t dataPacket_t
   
typedef DataConnection::channelId_t channelId_t

Public Functions

   
   
  DataBroadcaster()
   
void addDataConnection( DataConnection * d)
   
void sendKeyValue( channelId_t channel, const StringIdentifier & key, const dataPacket_t & data)
   
void sendValue( channelId_t channel, const dataPacket_t & data)

Documentation

typedef
Util::Network::DataBroadcaster::dataPacket_t

public
 
 
typedef DataConnection::dataPacket_t dataPacket_t

Defined in Util/Network/DataBroadcaster.h:30


typedef
Util::Network::DataBroadcaster::channelId_t

public
 
 
typedef DataConnection::channelId_t channelId_t

Defined in Util/Network/DataBroadcaster.h:31


function
Util::Network::DataBroadcaster::DataBroadcaster

public inline
   
   
DataBroadcaster( )

Defined in Util/Network/DataBroadcaster.h:33


function
Util::Network::DataBroadcaster::addDataConnection

public inline
     
     
void addDataConnection( DataConnection * d )

Defined in Util/Network/DataBroadcaster.h:36


function
Util::Network::DataBroadcaster::sendKeyValue

public inline
     
     
void sendKeyValue( channelId_t channel,
  const StringIdentifier & key,
  const dataPacket_t & data
)    

See also: DataConnection::sendKeyValue

Defined in Util/Network/DataBroadcaster.h:41


function
Util::Network::DataBroadcaster::sendValue

public inline
     
     
void sendValue( channelId_t channel,
  const dataPacket_t & data
)    

See also: DataConnection::sendValue

Defined in Util/Network/DataBroadcaster.h:56