Searched refs:SocketThread (Results 1 – 8 of 8) sorted by relevance
19 SocketThread::SocketThread() in SocketThread() function in OHOS::SocketThread24 SocketThread::~SocketThread() in ~SocketThread()29 void SocketThread::run() in run()38 void SocketThread::Quit() in Quit()
24 SocketThread &SocketThread::GetInstance() in GetInstance()26 static SocketThread instance; in GetInstance()30 bool SocketThread::Initialize() in Initialize()51 thread_ = std::make_unique<std::thread>(&SocketThread::OnListenEvents, this); in Initialize()57 bool SocketThread::Uninitialize() in Uninitialize()78 bool SocketThread::AddSocket(int fd, int flag, Socket &sock) in AddSocket()113 void SocketThread::OnListenEvents(void) in OnListenEvents()159 int SocketThread::FindFd(Socket &sock) in FindFd()171 void SocketThread::DeleteFd(Socket &sock) in DeleteFd()177 bool SocketThread::DeleteSocket(Socket &sock) in DeleteSocket()
29 class SocketThread final {31 static SocketThread &GetInstance();64 SocketThread() = default;65 ~SocketThread() = default;
44 SocketThread::GetInstance().Initialize(); in Enable()59 SocketThread::GetInstance().Uninitialize(); in Disable()190 SocketThread::GetInstance().DeleteSocket(*socket); in ProcessMessage()
409 SocketThread::GetInstance().AddSocket(transportFd_, 0, *this); in Connect()432 SocketThread::GetInstance().AddSocket(transportFd_, 0, *this); in Listen()491 SocketThread::GetInstance().DeleteSocket(*this); in ReceiveSdpResult()527 SocketThread::GetInstance().AddSocket( in AddSocketInternal()579 SocketThread::GetInstance().DeleteSocket(*serverSocket); in ProcessDisconnection()595 SocketThread::GetInstance().DeleteSocket(*this); in ProcessDisconnection()714 SocketThread::GetInstance().AddSocket( in OnSocketWriteReadyNative()720 SocketThread::GetInstance().DeleteSocket(sock); in OnSocketWriteReadyNative()798 SocketThread::GetInstance().AddSocket(this->transportFd_, 1, *this); in WriteDataToAPP()803 SocketThread::GetInstance().DeleteSocket(*this); in WriteDataToAPP()
25 class SocketThread : public QThread {28 SocketThread();29 ~SocketThread();
72 SocketThread* socketThread_;
73 socketThread_ = new SocketThread(); in CreateSocketThread()