23 lines
476 B
C++
23 lines
476 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: ISocket.hpp
|
||
|
Date: 2022-8-15
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct ISocketChannel;
|
||
|
struct ISocketDriver;
|
||
|
|
||
|
struct ISocket : virtual ISocketBase
|
||
|
{
|
||
|
virtual AuSPtr<ISocketChannel> ToChannel() = 0;
|
||
|
|
||
|
virtual const NetEndpoint &GetRemoteEndpoint() = 0;
|
||
|
|
||
|
virtual AuSPtr<ISocketDriver> GetUserDriver() = 0;
|
||
|
};
|
||
|
}
|