changeset 654:0fbb37fa3d59

Irccd: style (transport) #782
author David Demelier <markand@malikania.fr>
date Tue, 27 Mar 2018 20:24:02 +0200
parents 026a8dd20bd4
children cda30ca5bb76
files libirccd/irccd/daemon/service/transport_service.cpp libirccd/irccd/daemon/transport_client.cpp libirccd/irccd/daemon/transport_client.hpp libirccd/irccd/daemon/transport_server.hpp
diffstat 4 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libirccd/irccd/daemon/service/transport_service.cpp	Tue Mar 27 20:20:00 2018 +0200
+++ b/libirccd/irccd/daemon/service/transport_service.cpp	Tue Mar 27 20:24:02 2018 +0200
@@ -79,7 +79,7 @@
         default:
             handle_command(tc, json);
 
-            if (tc->state() == transport_client::state_t::ready)
+            if (tc->get_state() == transport_client::state_t::ready)
                 do_recv(std::move(tc));
 
             break;
@@ -121,7 +121,7 @@
     assert(json.is_object());
 
     for (const auto& servers : servers_)
-        for (const auto& client : servers->clients())
+        for (const auto& client : servers->get_clients())
             client->send(json);
 }
 
--- a/libirccd/irccd/daemon/transport_client.cpp	Tue Mar 27 20:20:00 2018 +0200
+++ b/libirccd/irccd/daemon/transport_client.cpp	Tue Mar 27 20:24:02 2018 +0200
@@ -66,7 +66,7 @@
         if (handler)
             handler(code);
 
-        parent_.clients().erase(shared_from_this());
+        parent_.get_clients().erase(shared_from_this());
     });
 
     state_ = state_t::closing;
--- a/libirccd/irccd/daemon/transport_client.hpp	Tue Mar 27 20:20:00 2018 +0200
+++ b/libirccd/irccd/daemon/transport_client.hpp	Tue Mar 27 20:24:02 2018 +0200
@@ -88,7 +88,7 @@
      *
      * \return the parent
      */
-    inline const transport_server& parent() const noexcept
+    inline const transport_server& get_parent() const noexcept
     {
         return parent_;
     }
@@ -98,7 +98,7 @@
      *
      * \return the parent
      */
-    inline transport_server& parent() noexcept
+    inline transport_server& get_parent() noexcept
     {
         return parent_;
     }
@@ -108,7 +108,7 @@
      *
      * \return the state
      */
-    inline state_t state() const noexcept
+    inline state_t get_state() const noexcept
     {
         return state_;
     }
--- a/libirccd/irccd/daemon/transport_server.hpp	Tue Mar 27 20:20:00 2018 +0200
+++ b/libirccd/irccd/daemon/transport_server.hpp	Tue Mar 27 20:24:02 2018 +0200
@@ -93,7 +93,7 @@
      *
      * \return the clients
      */
-    inline const client_set_t& clients() const noexcept
+    inline const client_set_t& get_clients() const noexcept
     {
         return clients_;
     }
@@ -103,7 +103,7 @@
      *
      * \return the clients
      */
-    inline client_set_t& clients() noexcept
+    inline client_set_t& get_clients() noexcept
     {
         return clients_;
     }
@@ -113,7 +113,7 @@
      *
      * \return the password
      */
-    inline const std::string& password() const noexcept
+    inline const std::string& get_password() const noexcept
     {
         return password_;
     }