WSF
WsfXIO_Destination Class Reference

#include <WsfXIO_Destination.hpp>

Public Member Functions

void Add (WsfXIO_Connection *aConnectionPtr)
void Remove (WsfXIO_Connection *aConnectionPtr)
 Removes a connection from the list.
void RemoveAll (WsfXIO_Connection *aConnectionPtr)
bool IsEmpty () const
 Returns true if the destination is null.
const std::vector< PakSocketIO * > & GetIO_List () const
void Send (WsfXIO_Packet &aPkt)
 Sends a message to all connections in this destination.
const std::vector< WsfXIO_Connection * > & GetConnections ()

Detailed Description

Maintains a list of connections and provides a method to send messages to all connections at once. A connection is allowed to be added multiple times.

Member Function Documentation

◆ Add()

void WsfXIO_Destination::Add ( WsfXIO_Connection * aConnectionPtr)

Adds a connection to the list. A connection may be added more than once.

Referenced by WsfXIO_MessageService::HandleMessage(), WsfXIO_PlatformInfoService::HandleRequest(), and WsfXIO_PlatformPartInfoService::HandleRequest().

◆ GetConnections()

const std::vector< WsfXIO_Connection * > & WsfXIO_Destination::GetConnections ( )
inline

◆ GetIO_List()

const std::vector< PakSocketIO * > & WsfXIO_Destination::GetIO_List ( ) const
inline

Returns a list of PakSocketIO objects used to send messages Each member in the list is guaranteed to be unique.

Referenced by WsfXIO_Interface::Send().

◆ IsEmpty()

◆ Remove()

void WsfXIO_Destination::Remove ( WsfXIO_Connection * aConnectionPtr)

◆ RemoveAll()

void WsfXIO_Destination::RemoveAll ( WsfXIO_Connection * aConnectionPtr)

◆ Send()

void WsfXIO_Destination::Send ( WsfXIO_Packet & aPkt)

Sends a message to all connections in this destination.

Referenced by WsfXIO_PlatformInfoService::DR_Change(), and WsfXIO_MessageService::HandleMessage().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved