diff options
| author | unknown <diego@csz852.win2k.cs.ust.hk> | 2013-05-24 18:33:43 +0800 |
|---|---|---|
| committer | unknown <diego@csz852.win2k.cs.ust.hk> | 2013-05-24 18:33:43 +0800 |
| commit | cbc77440c8d84487ed652ee65551df0f8592a53f (patch) | |
| tree | 4a6fc94d2ea9149990ff0fa86fa34f132d99ad13 /src/inet.h | |
| parent | ca48baf495d57a592030db82d5e4407596f0afde (diff) | |
| parent | 571308a94e30f15669c1c5e2df4d7713885e8859 (diff) | |
| download | luasocket-cbc77440c8d84487ed652ee65551df0f8592a53f.tar.gz luasocket-cbc77440c8d84487ed652ee65551df0f8592a53f.tar.bz2 luasocket-cbc77440c8d84487ed652ee65551df0f8592a53f.zip | |
Merge branch 'lua52-mingw' of https://github.com/pkulchenko/luasocket into pkulchenko
Diffstat (limited to 'src/inet.h')
| -rw-r--r-- | src/inet.h | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -20,6 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | #ifdef _WIN32 | 21 | #ifdef _WIN32 |
| 22 | #define INET_ATON | 22 | #define INET_ATON |
| 23 | #define INET_PTON | ||
| 23 | #endif | 24 | #endif |
| 24 | 25 | ||
| 25 | int inet_open(lua_State *L); | 26 | int inet_open(lua_State *L); |
| @@ -42,4 +43,9 @@ int inet_optsocktype(lua_State* L, int narg, const char* def); | |||
| 42 | int inet_aton(const char *cp, struct in_addr *inp); | 43 | int inet_aton(const char *cp, struct in_addr *inp); |
| 43 | #endif | 44 | #endif |
| 44 | 45 | ||
| 46 | #ifdef INET_PTON | ||
| 47 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); | ||
| 48 | int inet_pton(int af, const char *src, void *dst); | ||
| 49 | #endif | ||
| 50 | |||
| 45 | #endif /* INET_H */ | 51 | #endif /* INET_H */ |
