summaryrefslogtreecommitdiff
path: root/src/core/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network.h')
-rw-r--r--src/core/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/network.h b/src/core/network.h
index b1a0f6e2..38484665 100644
--- a/src/core/network.h
+++ b/src/core/network.h
@@ -67,7 +67,9 @@ int net_hosterror_notfound(int error);
/* Get socket address/port */
int net_getsockname(GIOChannel *handle, IPADDR *addr, int *port);
+/* IPADDR -> char* translation. `host' must be at least MAX_IP_LEN bytes */
int net_ip2host(IPADDR *ip, char *host);
+/* char* -> IPADDR translation. */
int net_host2ip(const char *host, IPADDR *ip);
/* Get socket error */