summaryrefslogtreecommitdiff
path: root/LibC/netdb.h
blob: 727c212e9a537001e6f22cde9ad2b3c24d61bd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <sys/cdefs.h>
#include <sys/types.h>

__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