add: parsing
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
struct host {
|
||||
char ip[INET_ADDRSTRLEN];
|
||||
struct hostenv {
|
||||
char ipstr[INET_ADDRSTRLEN];
|
||||
struct sockaddr_in ip;
|
||||
char *hostname;
|
||||
char *reverse_dns;
|
||||
char reverse_dns[NI_MAXHOST];
|
||||
};
|
||||
Reference in New Issue
Block a user