35 lines
841 B
C++
35 lines
841 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuNetSocketServerAcceptReadOperation.Unix.hpp
|
||
|
Date: 2022-8-22
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
#include "AuNetSocketServerAcceptReadOperation.hpp"
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct NetInterface;
|
||
|
|
||
|
struct SocketServerAcceptReadOperation :
|
||
|
virtual SocketServerAcceptReadOperationBase
|
||
|
{
|
||
|
SocketServerAcceptReadOperation(NetInterface *pInterface,
|
||
|
SocketServer *pParent);
|
||
|
|
||
|
bool DoTick();
|
||
|
bool InitOnce();
|
||
|
bool Pretick();
|
||
|
|
||
|
void UpdateNextSocketAddresses();
|
||
|
void Destroy();
|
||
|
|
||
|
protected:
|
||
|
AuSPtr<Socket> nextSocketPtr;
|
||
|
NetInterface *pInterface_;
|
||
|
int nextSocket {};
|
||
|
AuSPtr<IIOProcessorItem> pWatch_;
|
||
|
};
|
||
|
}
|