File indexing completed on 2025-01-12 03:39:40
0001 /* 0002 SPDX-FileCopyrightText: 2017 Chinmoy Ranjan Pradhan <chinmoyrp65@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef FDSENDER_H 0008 #define FDSENDER_H 0009 0010 // std 0011 #include <string> 0012 0013 class FdSender 0014 { 0015 public: 0016 explicit FdSender(const std::string &path); 0017 ~FdSender(); 0018 0019 FdSender(const FdSender &) = delete; 0020 FdSender &operator=(const FdSender &) = delete; 0021 0022 bool sendFileDescriptor(int fd); 0023 bool isConnected() const; 0024 0025 private: 0026 int m_socketDes; 0027 }; 0028 0029 #endif