diff options
author | Ed Tanous <ed@tanous.net> | 2020-09-29 00:29:23 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-09-29 21:38:42 +0300 |
commit | 2c70f8004afdc27bd42968b8bf7480f2e534974c (patch) | |
tree | 569f4cb0110aae2ccd0e4d197efe4c3a36c5b7b6 /include/obmc_console.hpp | |
parent | 3e4c7797033926a0502cdd4491421c8b16684aef (diff) | |
download | bmcweb-2c70f8004afdc27bd42968b8bf7480f2e534974c.tar.xz |
Fix naming conventions
Lots of code has been checked in that doesn't match the naming
conventions. Lets fix that.
Tested:
Code compiles. Variable/function renames only.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I6bd107811d0b724f1fad990016113cdf035b604b
Diffstat (limited to 'include/obmc_console.hpp')
-rw-r--r-- | include/obmc_console.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp index 29efbef782..06df7fd1b1 100644 --- a/include/obmc_console.hpp +++ b/include/obmc_console.hpp @@ -13,7 +13,7 @@ namespace crow namespace obmc_console { -static std::unique_ptr<boost::asio::local::stream_protocol::socket> host_socket; +static std::unique_ptr<boost::asio::local::stream_protocol::socket> hostSocket; static std::array<char, 4096> outputBuffer; static std::string inputBuffer; @@ -37,7 +37,7 @@ inline void doWrite() } doingWrite = true; - host_socket->async_write_some( + hostSocket->async_write_some( boost::asio::buffer(inputBuffer.data(), inputBuffer.size()), [](boost::beast::error_code ec, std::size_t bytes_written) { doingWrite = false; @@ -63,7 +63,7 @@ inline void doWrite() inline void doRead() { BMCWEB_LOG_DEBUG << "Reading from socket"; - host_socket->async_read_some( + hostSocket->async_read_some( boost::asio::buffer(outputBuffer.data(), outputBuffer.size()), [](const boost::system::error_code& ec, std::size_t bytesRead) { BMCWEB_LOG_DEBUG << "read done. Read " << bytesRead << " bytes"; @@ -112,15 +112,15 @@ inline void requestRoutes(App& app) BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened"; sessions.insert(&conn); - if (host_socket == nullptr) + if (hostSocket == nullptr) { const std::string consoleName("\0obmc-console", 13); boost::asio::local::stream_protocol::endpoint ep(consoleName); - host_socket = std::make_unique< + hostSocket = std::make_unique< boost::asio::local::stream_protocol::socket>( - conn.get_io_context()); - host_socket->async_connect(ep, connectHandler); + conn.getIoContext()); + hostSocket->async_connect(ep, connectHandler); } }) .onclose([](crow::websocket::Connection& conn, @@ -128,7 +128,7 @@ inline void requestRoutes(App& app) sessions.erase(&conn); if (sessions.empty()) { - host_socket = nullptr; + hostSocket = nullptr; inputBuffer.clear(); inputBuffer.shrink_to_fit(); } |