diff options
author | Jack Lloyd <[email protected]> | 2017-09-16 12:59:32 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-16 12:59:32 -0400 |
commit | 3d63a182e857251769dce6e8b0eb75b3b9acce03 (patch) | |
tree | ff17be6b116a3b2586ff42f71b45d0c4affe0d80 /src/lib/utils | |
parent | ab23d3d8777bbf1fcc00f16e94686aac5f82e614 (diff) |
Add missing override annotations
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/os_utils.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index 261fb5f1f..85248d11e 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -63,12 +63,12 @@ OS::open_socket(const std::string& hostname, boost::asio::connect(m_tcp, resolver.resolve(query)); } - void write(const uint8_t buf[], size_t len) + void write(const uint8_t buf[], size_t len) override { boost::asio::write(m_tcp, boost::asio::buffer(buf, len)); } - size_t read(uint8_t buf[], size_t len) + size_t read(uint8_t buf[], size_t len) override { boost::system::error_code error; size_t got = m_tcp.read_some(boost::asio::buffer(buf, len), error); @@ -154,7 +154,7 @@ OS::open_socket(const std::string& hostname, ::WSACleanup(); } - void write(const uint8_t buf[], size_t len) + void write(const uint8_t buf[], size_t len) override { size_t sent_so_far = 0; while(sent_so_far != len) @@ -173,7 +173,7 @@ OS::open_socket(const std::string& hostname, } } - size_t read(uint8_t buf[], size_t len) + size_t read(uint8_t buf[], size_t len) override { int got = ::recv(m_socket, reinterpret_cast<char*>(buf), @@ -244,7 +244,7 @@ OS::open_socket(const std::string& hostname, m_fd = -1; } - void write(const uint8_t buf[], size_t len) + void write(const uint8_t buf[], size_t len) override { size_t sent_so_far = 0; while(sent_so_far != len) @@ -259,7 +259,7 @@ OS::open_socket(const std::string& hostname, } } - size_t read(uint8_t buf[], size_t len) + size_t read(uint8_t buf[], size_t len) override { ssize_t got = ::read(m_fd, buf, len); |