initial commit

This commit is contained in:
ackimixs
2024-03-21 21:27:39 +01:00
commit a2116fd143
8 changed files with 224 additions and 0 deletions

22
example/client.test.cpp Normal file
View File

@@ -0,0 +1,22 @@
#include <TCPClient.hpp>
int main() {
TCPClient client("127.0.0.1", 8082); // Replace "127.0.0.1" with the IP address of your server and 8080 with the port number
client.start();
while (true) {
std::string message;
std::cout << "Enter message ('quit' to exit): ";
std::getline(std::cin, message);
if (message == "quit") {
client.stop();
break;
}
client.sendMessage(message.c_str());
}
return 0;
}