Browse Source

fixing inheritance

logicp 5 years ago
parent
commit
72fa1d98ce
2 changed files with 4 additions and 4 deletions
  1. 2 2
      headers/send_interface.h
  2. 2 2
      socket_listener.cpp

+ 2 - 2
headers/send_interface.h

@@ -4,8 +4,8 @@
 #include <string>
 
 class SendInterface {
- public:
-  virtual void sendMessage(int client_socket_fd, std::string message) = 0;
+  public:
+    virtual void sendMessage(int client_socket_fd, std::string message) = 0;
 };
 
 #endif  // __SEND_INTERFACE_H__

+ 2 - 2
socket_listener.cpp

@@ -32,8 +32,8 @@ SocketListener::~SocketListener() { cleanup(); }
  * Send a null-terminated array of characters, supplied as a const char pointer,
  * to a client socket described by its file descriptor
  */
-void SocketListener::sendMessage(int client_socket_fd, std::string msg) {
-  send(client_socket_fd, msg.c_str(), msg.size() + 1, 0);
+void SocketListener::sendMessage(int client_socket_fd, std::string message) {
+  send(client_socket_fd, message.c_str(), message.size() + 1, 0);
 }
 
 /**