Added client, fixed typo
This commit is contained in:
2
server.c
2
server.c
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user