usock: add usock_inet, which returns the remote address
[project/libubox.git] / usock.h
diff --git a/usock.h b/usock.h
index b0b952b..2ead7e5 100644 (file)
--- a/usock.h
+++ b/usock.h
@@ -32,6 +32,7 @@
 
 const char *usock_port(int port);
 int usock(int type, const char *host, const char *service);
+int usock_inet(int type, const char *host, const char *service, void *addr);
 
 /**
  * Wait for a socket to become ready.