Просмотр исходного кода

Expose some more functionality

Daniele Bartolini 9 лет назад
Родитель
Сommit
4f420e48e9
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/device/console_server.h

+ 3 - 2
src/device/console_server.h

@@ -30,8 +30,6 @@ class ConsoleServer
 
 	void add_client(TCPSocket socket);
 	ReadResult update_client(TCPSocket client);
-
-	void send(TCPSocket client, const char* json);
 	void process(TCPSocket client, const char* json);
 
 public:
@@ -51,6 +49,9 @@ public:
 	/// Sends the given JSON-encoded string to all clients.
 	void send(const char* json);
 
+	/// Sends the given JSON-encoded string to @a client.
+	void send(TCPSocket client, const char* json);
+
 	/// Sends an error message to @a client.
 	void error(TCPSocket client, const char* msg);