Skip to content

Commit

Permalink
Add a Validate() method to MessageUnit::Client which validates both b…
Browse files Browse the repository at this point in the history
…uffer and socket
  • Loading branch information
VeithMetro authored Dec 17, 2024
1 parent 681c7a3 commit 62bcc15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/messaging/MessageUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,13 @@ namespace Thunder {
return (_channel.IsOpen());
}

void Validate()
{
if ((IsValid() == false) && (MessageDataBuffer::Validate() == true)) {
_channel.Open(Core::infinite);
}
}

/**
* @brief Exchanges metadata with the server. Reader needs to register for notifications to recevie this message.
* Passed buffer will be filled with data from the other side
Expand Down

0 comments on commit 62bcc15

Please sign in to comment.