/[svn]/hopm/trunk/src/libopm/src/inet.h
ViewVC logotype

Contents of /hopm/trunk/src/libopm/src/inet.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5135 - (show annotations)
Thu Dec 25 18:51:51 2014 UTC (5 years, 5 months ago) by michael
File MIME type: text/x-csrc
File size: 738 byte(s)
- propset svn:eol-style native

1 #ifndef INET_H
2 #define INET_H
3
4 #include <sys/types.h>
5 #include <sys/socket.h>
6 #include <netinet/in.h>
7 #include <arpa/inet.h>
8 #include <netdb.h>
9 #ifdef HAVE_FCNTL_H
10 # include <fcntl.h>
11 #endif
12 #include <sys/types.h>
13
14 #ifdef HAVE_SYS_POLL_H
15 # include <sys/poll.h>
16 #endif
17
18 #ifndef AF_INET6
19 # define AF_INET6 10
20 #endif
21
22 typedef struct _opm_sockaddr opm_sockaddr;
23 typedef struct _opm_inaddr opm_inaddr;
24
25 struct _opm_sockaddr {
26 struct sockaddr_in sa4;
27 };
28
29 struct _opm_inaddr {
30 struct in_addr in4;
31 };
32
33 #ifndef HAVE_INET_PTON
34 extern int inet_pton(int, const char *, void *);
35 #endif
36 extern const char *inetntop(int, const void *, char *, unsigned int);
37 extern struct hostent *opm_gethostbyname(const char *);
38
39
40 #endif /* INET_H */

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28