working commit

This commit is contained in:
2026-04-23 14:53:39 +02:00
parent fa1c3ce9e2
commit cf45872d91
12 changed files with 1786 additions and 26 deletions
+3 -3
View File
@@ -9,12 +9,12 @@
int main( int argc, char** argv) {
TCPClient client;
auto res = client.conn("209.51.188.116", 80);
auto res = client.Connect("209.51.188.116", 80);
if (!res) {
std::cerr << res.error() << std::endl;
return 1;
}
auto wSize = client.writeBytes("GET / HTTP/1.1\n\n\n");
auto wSize = client.Write("GET / HTTP/1.1\n\n\n");
if (!wSize) {
std::cerr << wSize.error() << std::endl;
return 1;
@@ -22,7 +22,7 @@ int main( int argc, char** argv) {
std::vector<uint8_t> buffer;
buffer.resize(2048);
auto rSize = client.readBytes(&buffer);
auto rSize = client.Read(&buffer);
if (!rSize) {
std::cerr << rSize.error() << std::endl;
return 1;