Added client, fixed typo

This commit is contained in:
Nikita Tyukalov, ASUS, Linux
2026-03-27 00:44:50 +03:00
parent 93c83dc40f
commit 2b870aec34
5 changed files with 197 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ bool _accept() {
int server_open(const char* host, int port) {
struct hostent *he = gethostbyname(host);
if (!he) {
fprintf(stderr, "[!] gethostbyname failed: %d (h_errno)\n", h_errno);
fprintf(stderr, "[!] gethostbyname (%s) failed: %d (h_errno)\n", host, h_errno);
return -1;
}
_fd = socket(