[Lldb-commits] [lldb] [lldb] For a host socket, add a method to print the listening address. (PR #118330)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 3 09:54:32 PST 2024
================
@@ -115,6 +115,18 @@ std::string TCPSocket::GetRemoteConnectionURI() const {
return "";
}
+std::vector<std::string> TCPSocket::GetListeningConnectionURI() const {
+ if (m_listen_sockets.empty())
+ return {};
+
+ std::vector<std::string> URIs;
+ for (auto &s : m_listen_sockets)
----------------
labath wrote:
```suggestion
for (const auto &[fd, addr] : m_listen_sockets)
```
(or any other variable names you like)
https://github.com/llvm/llvm-project/pull/118330
More information about the lldb-commits
mailing list