usock: add usock_port() for convenient use of numeric ports
[project/libubox.git] / usock.h
diff --git a/usock.h b/usock.h
index 5df4362cfe63f6e23cb8859efde4337bee0a8a90..8345581be5f0ffcbf715074f6aa319519e955bad 100644 (file)
--- a/usock.h
+++ b/usock.h
@@ -30,6 +30,7 @@
 #define USOCK_IPV4ONLY         0x4000
 #define USOCK_UNIX             0x8000
 
+const char *usock_port(int port);
 int usock(int type, const char *host, const char *service);
 
 #endif /* USOCK_H_ */