Rev 9552 | Rev 9620 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9552 | Rev 9558 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef KOLIBRI_NETWORK_H |
1 | #ifndef __NETWORK_H |
2 | #define KOLIBRI_NETWORK_H |
2 | #define __NETWORK_H |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #include |
4 | #include |
Line -... | Line 5... | ||
- | 5 | #include |
|
- | 6 | ||
5 | #include |
7 | #define stdcall __attribute__ ((stdcall)) |
6 | 8 | ||
7 | #define EAI_ADDRFAMILY 1 |
9 | #define EAI_ADDRFAMILY 1 |
8 | #define EAI_AGAIN 2 |
10 | #define EAI_AGAIN 2 |
9 | #define EAI_BADFLAGS 3 |
11 | #define EAI_BADFLAGS 3 |
Line 44... | Line 46... | ||
44 | struct sockaddr *ai_addr; |
46 | struct sockaddr *ai_addr; |
45 | struct addrinfo *ai_next; |
47 | struct addrinfo *ai_next; |
46 | }; |
48 | }; |
47 | #pragma pack(pop) |
49 | #pragma pack(pop) |
Line -... | Line 50... | ||
- | 50 | ||
48 | 51 | extern int networklib_init (); |
|
49 | extern int __stdcall (*inet_addr)(const char* hostname); |
52 | extern int stdcall (*inet_addr)(const char* hostname); |
50 | extern char* __stdcall (*inet_ntoa)(int ip_addr); |
53 | extern char* stdcall (*inet_ntoa)(int ip_addr); |
51 | extern int __stdcall (*getaddrinfo)(const char* hostname, const char* servname, const struct addrinfo* hints, struct addrinfo** res); |
54 | extern int stdcall (*getaddrinfo)(const char* hostname, const char* servname, const struct addrinfo* hints, struct addrinfo** res); |
Line 52... | Line 55... | ||
52 | extern void __stdcall (*freeaddrinfo)(struct addrinfo* ai); |
55 | extern void stdcall (*freeaddrinfo)(struct addrinfo* ai); |