9#ifndef LLDB_HOST_COMMON_TCPSOCKET_H
10#define LLDB_HOST_COMMON_TCPSOCKET_H
44 Status Listen(llvm::StringRef name,
int backlog)
override;
47 llvm::Expected<std::vector<MainLoopBase::ReadHandleUP>>
49 std::function<
void(std::unique_ptr<Socket> socket)> sock_cb)
override;
virtual llvm::Expected< std::vector< MainLoopBase::ReadHandleUP > > Accept(MainLoopBase &loop, std::function< void(std::unique_ptr< Socket > socket)> sock_cb)=0
std::vector< std::string > GetListeningConnectionURI() const override
Status Listen(llvm::StringRef name, int backlog) override
bool IsValid() const override
void CloseListenSockets()
uint16_t GetRemotePortNumber() const
Status CreateSocket(int domain)
std::string GetRemoteConnectionURI() const override
llvm::Expected< std::vector< MainLoopBase::ReadHandleUP > > Accept(MainLoopBase &loop, std::function< void(std::unique_ptr< Socket > socket)> sock_cb) override
std::string GetLocalIPAddress() const
std::string GetRemoteIPAddress() const
uint16_t GetLocalPortNumber() const
int SetOptionReuseAddress()
std::map< int, SocketAddress > m_listen_sockets
Status Connect(llvm::StringRef name) override
A class that represents a running process on the host machine.