Andrew Walbran | 3d2c197 | 2020-04-07 12:24:26 +0100 | [diff] [blame] | 1 | //===-- AbstractSocket.h ----------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef liblldb_AbstractSocket_h_ |
| 10 | #define liblldb_AbstractSocket_h_ |
| 11 | |
| 12 | #include "lldb/Host/posix/DomainSocket.h" |
| 13 | |
| 14 | namespace lldb_private { |
| 15 | class AbstractSocket : public DomainSocket { |
| 16 | public: |
| 17 | AbstractSocket(bool child_processes_inherit); |
| 18 | |
| 19 | protected: |
| 20 | size_t GetNameOffset() const override; |
| 21 | void DeleteSocketFile(llvm::StringRef name) override; |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | #endif // ifndef liblldb_AbstractSocket_h_ |