summaryrefslogtreecommitdiff
path: root/core/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-23 10:26:52 -0400
committerirungentoo <irungentoo@gmail.com>2013-08-23 10:26:52 -0400
commit9d3a8d94f21b584e199fbe04505cf0b259218ac8 (patch)
treea0ad9df07dec90fc929cc735bde5e57cc763b0e8 /core/network.h
parentbcb87139a2d8c5b308cfb82635e9483e867c9dbc (diff)
New API done and tested.
Some stuff needs to be cleaned a bit though.
Diffstat (limited to 'core/network.h')
-rw-r--r--core/network.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/network.h b/core/network.h
index 088bbb3b..3547f79b 100644
--- a/core/network.h
+++ b/core/network.h
@@ -151,16 +151,6 @@ Networking_Core *new_networking(IP ip, uint16_t port);
151/* function to cleanup networking stuff(doesn't do much right now) */ 151/* function to cleanup networking stuff(doesn't do much right now) */
152void kill_networking(Networking_Core *net); 152void kill_networking(Networking_Core *net);
153 153
154/*
155 resolve_addr():
156 address should represent IPv4 or a hostname with A record
157
158 returns a data in network byte order that can be used to set IP.i or IP_Port.ip.i
159 returns 0 on failure
160
161 TODO: Fix ipv6 support
162*/
163uint32_t resolve_addr(const char *address);
164 154
165#ifdef __cplusplus 155#ifdef __cplusplus
166} 156}