0
|
1 #ifndef BARPA_INET_H
|
|
2 #define BARPA_INET_H
|
|
3
|
|
4 #include "../config.h"
|
|
5
|
|
6 #ifdef CONFIG_BEOS_NETSERVER
|
|
7
|
|
8 # include <socket.h>
|
|
9 int inet_aton (const char * str, struct in_addr * add);
|
|
10 # define PF_INET AF_INET
|
|
11 # define SO_SNDBUF 0x40000001
|
|
12
|
|
13 /* fake */
|
|
14 struct ip_mreq {
|
|
15 struct in_addr imr_multiaddr; /* IP multicast address of group */
|
|
16 struct in_addr imr_interface; /* local IP address of interface */
|
|
17 };
|
|
18
|
|
19 #else
|
|
20 # include <arpa/inet.h>
|
|
21 #endif
|
|
22
|
|
23 #endif /* BARPA_INET_H */
|