AuroraRuntime/Source/IO/Net/AuNetSocketServer.NT.hpp
J Reece Wilson 1e4082c02f [+] Linux datagrams
[+] NetSocketBind::uDefaultInputStreamSize
[+] NetDatagramBind::uDefaultInputStreamSize
2022-12-16 17:18:12 +00:00

37 lines
1.1 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuNetSocketServer.NT.hpp
Date: 2022-8-22
Author: Reece
***/
#pragma once
#include "AuNetSocketServerAcceptReadOperation.hpp"
namespace Aurora::IO::Net
{
struct SocketServerImpl : SocketServer
{
SocketServerImpl(struct NetInterface *pInterface,
struct NetWorker *pWorker,
const AuSPtr<ISocketServerDriver> &pDriver,
const AuSPtr<ISocketDriverFactory> &pSocketDriverFactory,
AuUInt32 uMaxConnections,
AuUInt32 uDefaultInputStreamSize,
bool bMultiThreaded);
virtual void DoNonblockingReadTick() override;
virtual bool InitSocket(const NetEndpoint &localAddress) override;
virtual bool ImplBind() override;
virtual bool ImplListen() override;
virtual bool BeginAcceptLoop() override;
void DetroyServer() override;
protected:
SocketServerAcceptReadOperation acceptOperation_;
AuSPtr<ISocketDriverFactory> pSocketDriverFactory_;
};
}