#pragma once #include #include __BEGIN_DECLS struct hostent { char* h_name; char** h_aliases; int h_addrtype; int h_length; char** h_addr_list; }; struct hostent *gethostbyname(const char*); __END_DECLS