Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
235 bytes
|
Line | |
---|
1 | #include <sys/socket.h>
|
---|
2 | #include <netinet/in.h>
|
---|
3 | #include <arpa/inet.h>
|
---|
4 |
|
---|
5 | int __inet_aton(const char *, struct in_addr *);
|
---|
6 |
|
---|
7 | in_addr_t inet_addr(const char *p)
|
---|
8 | {
|
---|
9 | struct in_addr a;
|
---|
10 | if (!__inet_aton(p, &a)) return -1;
|
---|
11 | return a.s_addr;
|
---|
12 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.