This commit is contained in:
2026-06-17 21:11:25 +03:00
commit 9a150d90ad
17 changed files with 992 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
//
// Created by Иван Игоревич Овчинников on 08.06.2026.
//
#ifndef IOVI_NETWORK_SIMPLE_CLIENT_H
#define IOVI_NETWORK_SIMPLE_CLIENT_H
#include "NetworkConfig.h"
#include <string>
class SimpleClient {
SOCKET_TYPE clientSocket; // The client's walkie-talkie
public:
SimpleClient();
~SimpleClient();
// Returns true if we successfully dialed and connected, false otherwise
bool connectTo(const std::string& ip, int port);
// Sends a message and waits for the server to echo it back
void talk(const std::string& message) const;
};
#endif // IOVI_NETWORK_SIMPLE_CLIENT_H