AuroraRuntime/Source/IO/Net/AuNetSocket.NT.hpp
Jamie Reece Wilson dcf94a8b23 [+] (dummy!) ISocketServerLimits.hpp
[+] (dummy!) ISocketChannelLimits.hpp
[+] ISocketChannel::GetChannelLimits
[+] ISocketBase::GetLockedWorkerThread
[+] ISocket::GetSocketServer
2023-11-29 13:55:01 +00:00

74 lines
2.1 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuNetSocket.NT.hpp
Date: 2022-8-16
Author: Reece
***/
#pragma once
namespace Aurora::IO::FS
{
struct FileHandle;
}
#include "AuNetSocketOverlappedOperation.NT.hpp"
#include "AuNetSocket.hpp"
namespace Aurora::IO::Net
{
struct NetInterface;
struct NetWorker;
struct Socket;
struct SocketConnectOperation;
struct Socket : SocketBase
{
Socket(struct NetInterface *pInterface,
struct NetWorker *pWorker,
const AuSPtr<ISocketDriver> &pSocketDriver,
AuUInt osHandle,
AuSPtr<ISocketServer> pParent = {},
SocketServer *pParent2 = {});
Socket(struct NetInterface *pInterface,
struct NetWorker *pWorker,
const AuSPtr<ISocketDriver> &pSocketDriver,
const AuPair<NetHostname, AuUInt16> &endpoint,
AuNet::ETransportProtocol eProtocol);
Socket(struct NetInterface *pInterface,
struct NetWorker *pWorker,
const AuSPtr<ISocketDriver> &pSocketDriver,
const NetEndpoint &endpoint);
Socket(struct NetInterface *pInterface,
struct NetWorker *pWorker,
const AuSPtr<ISocketDriver> &pSocketDriver,
const NetSocketConnectMany &connectMany);
~Socket();
virtual void FinishConstructAsync() override;
virtual bool PrepareConnectOperations() override;
virtual void UpdateNagleAnyThread(bool bDisableNagle) override;
virtual bool UpdateLocalEndpoint() override;
virtual bool UpdateRemoteEndpoint() override;
virtual bool TryBindAnyLocal() override;
virtual bool ConnectOverlapped() override;
virtual bool ConnectNonblocking() override;
virtual bool ConnectBlocking() override;
virtual bool MakeNonblocking() override;
virtual void Shutdown(bool bNow) override;
virtual void CloseSocket() override;
virtual void RenewSocket() override;
};
}