Jamie Reece Wilson
2717178681
[+] INetInterface::SetWorkersService [+] INetInterface::SetResolveService [+] INetInterface::SetDatagramService [+] INetInterface::SetInterfacesService [*] Refactor: INetAdapter::GetStatus -> INetAdapter::GetAdapterStatus [*] Refactor: const NetError &ISocketBase::GetError() -> AuOptional<const NetError &> ISocketBase::GetError() [*] Refactor: INetAdapter to return const references of IPAddresses
29 lines
606 B
C++
29 lines
606 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: ISocketBase.hpp
|
|
Date: 2022-8-22
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO::Net
|
|
{
|
|
struct INetWorker;
|
|
|
|
struct ISocketBase
|
|
{
|
|
virtual AuOptional<const NetError &> GetError() = 0;
|
|
|
|
virtual const NetEndpoint &GetLocalEndpoint() = 0;
|
|
|
|
virtual void Shutdown(bool bNow = true) = 0;
|
|
virtual void Destroy() = 0;
|
|
|
|
virtual AuUInt ToPlatformHandle() = 0;
|
|
|
|
virtual AuSPtr<INetWorker> GetLockedWorkerThread() = 0;
|
|
|
|
AURT_ADD_USR_DATA;
|
|
};
|
|
} |