]> sjero.net Git - wget/blobdiff - src/connect.h
[svn] Rewrote bindport and acceptport to use a more standard calling convention.
[wget] / src / connect.h
index aa485c1c6c38510e2f5d098f2605a2e53253e508..9d67d070df139e7f45b7f13e6dd92380f4e285ff 100644 (file)
@@ -32,10 +32,6 @@ so, delete this exception statement from your version.  */
 
 #include "host.h"              /* for definition of ip_address */
 
-/* bindport flags */
-#define BIND_ON_IPV4_ONLY LH_IPV4_ONLY
-#define BIND_ON_IPV6_ONLY LH_IPV6_ONLY
-
 #ifndef ENABLE_IPV6
 # ifndef HAVE_SOCKADDR_STORAGE
 #  define sockaddr_storage sockaddr_in
@@ -51,8 +47,8 @@ enum {
 int connect_to_host PARAMS ((const char *, int));
 int connect_to_ip PARAMS ((const ip_address *, int, const char *));
 
-uerr_t bindport PARAMS ((const ip_address *, int *, int *));
-uerr_t acceptport PARAMS ((int, int *));
+int bind_local PARAMS ((const ip_address *, int *));
+int accept_connection PARAMS ((int));
 
 enum {
   ENDPOINT_LOCAL,