updates.
[silc.git] / lib / silcutil / silcnet.h
index 2cfa2430355465719689b4b42507918cce631169..8659cc54f0bf416a9ef7fc740d26d04bdcaf48be 100644 (file)
@@ -53,7 +53,7 @@
  *    the created socket or -1 on error.
  *
  ***/
-int silc_net_create_server(int port, char *ip_addr);
+int silc_net_create_server(int port, const char *ip_addr);
 
 /****f* silcutil/SilcNetAPI/silc_net_close_server
  *
@@ -203,8 +203,7 @@ bool silc_net_is_ip(const char *addr);
  *    binary form.
  *
  ***/
-bool silc_net_addr2bin(const char *addr, unsigned char *bin,
-                      uint32 bin_len);
+bool silc_net_addr2bin(const char *addr, void *bin, uint32 bin_len);
 
 /****f* silcutil/SilcNetAPI/silc_net_addr2bin_ne
  *
@@ -280,7 +279,7 @@ uint16 silc_net_get_local_port(int sock);
  *
  * SYNOPSIS
  *
- *    char *silc_net_localhost();
+ *    char *silc_net_localhost(void);
  *
  * DESCRIPTION
  *
@@ -289,7 +288,20 @@ uint16 silc_net_get_local_port(int sock);
  *    the first found hostname is returned.
  *
  ***/
-char *silc_net_localhost();
+char *silc_net_localhost(void);
+
+/****f* silcutil/SilcNetAPI/silc_net_localip
+ *
+ * SYNOPSIS
+ *
+ *    char *silc_net_localip(void)
+ *
+ * DESCRIPTION
+ *
+ *    Return IP of localhost.  
+ *
+ ***/
+char *silc_net_localip(void);
 
 #ifdef WIN32