-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OnAllPdu users are now able to return a bool to close the bind (#120)
What: OnAllPdu setting did not allow users to report bind closing status. This caused an io error when users responded to a unbind request. Why: The change allow users to send back a bool to let the app close the bind, if needed, like with a unbind request. How: The OnAllPDU is called from handleOrClose function, that has a return value to close the bind. The OnAllPdu will also have a bool return value and that value is forward to the handleorClose function. If the OnCallPdu is returned with a true value, handleOrClose will initiate the close status, like it does without the OnAllPdu setting. This change also include some other minor changes: - using a Callback type, to align with existing code - no need to check if return value of OnAllPDU is nil. Its a struck, it will never be nil and all fields will have default values - fix manual response example to align with new return bool on OnAllPdu call
- Loading branch information
1 parent
7bfd2f8
commit 9371038
Showing
4 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters