C12Adapter Opensource C++ Interface
|
Temporarily overrides read timeout with a new value using scope rules. More...
Public Member Functions | |
ReadTimeoutSavior (MChannel *channel, unsigned newTimeout) | |
Constructor saves the previous value of read timeout and sets the new one given. | |
~ReadTimeoutSavior () | |
Destructor restores the previously saved timeout. | |
Temporarily overrides read timeout with a new value using scope rules.
Constructor saves the current read timeout value, and sets a new given timeout. Destructor restores the previously saved value.
Usage example: