Skip to content

Commit

Permalink
Add an implementation of UpdateChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro authored Oct 23, 2024
1 parent 88db241 commit 9688730
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions MessageControl/MessageOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,23 +177,18 @@ namespace Publishers {
}
}

PluginHost::ISubSystem* UDPOutput::SubSystem() const
void UDPOutput::UpdateChannel()
{
return (_subSystem);
}

void UDPOutput::OpenUDPOutputChannel()
{
if (_output.IsOpen() == false) {
_output.Open(0);
if (_subSystem->IsActive(PluginHost::ISubSystem::NETWORK)) {
if (_output.IsOpen() == false) {
_output.Open(0);
}
ASSERT(_output.IsOpen() == true);
}
ASSERT(_output.IsOpen() == true);
}

void UDPOutput::CloseUDPOutputChannel()
{
if (_output.IsOpen() == true) {
_output.Close(Core::infinite);
else {
if (_output.IsOpen() == true) {
_output.Close(Core::infinite);
}
}
}

Expand Down

0 comments on commit 9688730

Please sign in to comment.