/*** Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved. File: AuNetSocketServerOnRead.Unix.cpp Date: 2022-12-16 Author: Reece ***/ #if 0 #include "Networking.hpp" #include "AuNetSocketServer.hpp" #include "AuNetSocket.hpp" #include "AuNetEndpoint.hpp" #include "AuNetInterface.hpp" #include "AuNetWorker.hpp" #include "AuNetEndpoint.hpp" #include "AuNetSocketServerOnRead.Unix.hpp" namespace Aurora::IO::Net { NetSocketServerOnRead::NetSocketServerOnRead(NetInterface *pInterface, Socket *pParent) : pInterface_(pInterface), SocketServerAcceptReadOperationBase(pParent) { } void NetSocketServerOnRead::Destroy() { if (this->pWatch_) { this->pWatch_->StopWatch(); } } bool NetSocketServerOnRead::DoTick() { // this->pParent_->DoPosixTick(); return true; } bool NetSocketServerOnRead::InitOnce() { auto pWaitHandle = AuMakeShared(this->pParent_->ToPlatformHandle(), -1); if (!pWaitHandle) { return false; } this->pWatch_ = this->pParent_->ToWorker()->ToProcessor()->StartSimpleLSWatchEx(pWaitHandle, AuSPtr(this->pParent_->SharedFromThis(), this), false); return bool(this->pWatch_); } } #endif