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
void set_result(optional<error_code>* a, error_code b) | |
{ | |
a->reset(b); | |
} | |
template <typename MutableBufferSequence> | |
void read_with_timeout(tcp::socket& sock, | |
const MutableBufferSequence& buffers) | |
{ | |
optional<error_code> timer_result; | |
deadline_timer timer(sock.io_service()); |