diff options
author | Coren[m] <Break@Ocean> | 2013-09-09 15:32:05 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-09 15:32:05 +0200 |
commit | 180322293c245a853612b5f58913a29997e11267 (patch) | |
tree | c75c95c6c3a20b82a50d3afd531d9465b028680c /toxcore/network.h | |
parent | 55214aa041f2cc0305d290ff7dfd9e3e2f5e0bde (diff) |
network.h:
- added ipany_ntoa()
network.c:
- added ipany_ntoa()
- fixed formatting
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h index 2a0b5560..15ca68e3 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -99,6 +99,12 @@ typedef struct { | |||
99 | }; | 99 | }; |
100 | } IPAny; | 100 | } IPAny; |
101 | 101 | ||
102 | /* ipany_ntoa | ||
103 | * converts ip into a string | ||
104 | * uses a static buffer, so mustn't used multiple times in the same output | ||
105 | */ | ||
106 | const char *ipany_ntoa(IPAny *ip); | ||
107 | |||
102 | typedef union { | 108 | typedef union { |
103 | struct { | 109 | struct { |
104 | IP4 ip; | 110 | IP4 ip; |