ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/libopm/src/inet.h
Revision: 5134
Committed: Thu Dec 25 18:50:02 2014 UTC (9 years, 3 months ago) by michael
Content type: text/x-chdr
File size: 738 byte(s)
Log Message:
- propset svn:keywords "Id"

File Contents

# Content
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:keywords Id