netbase: allow CreateSock() to create UNIX sockets if supported

This commit is contained in:
Matthew Zipkin
2023-05-26 14:05:28 -04:00
parent bae86c8d31
commit 74f568cb6f
2 changed files with 27 additions and 10 deletions

View File

@@ -229,7 +229,7 @@ CService LookupNumeric(const std::string& name, uint16_t portDefault = 0, DNSLoo
CSubNet LookupSubNet(const std::string& subnet_str);
/**
* Create a socket in the given address family.
* Create a TCP or UNIX socket in the given address family.
* @param[in] address_family to use for the socket.
* @return pointer to the created Sock object or unique_ptr that owns nothing in case of failure
*/