27 lines
611 B
C++
27 lines
611 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: ISocketDriver.hpp
|
||
|
Date: 2022-8-15
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
struct NetError;
|
||
|
|
||
|
AUKN_INTERFACE(ISocketDriver,
|
||
|
AUI_METHOD(bool, OnPreestablish, (const AuSPtr<ISocket> &, pInforming)),
|
||
|
|
||
|
AUI_METHOD(void, OnEstablish, ()),
|
||
|
|
||
|
AUI_METHOD(void, OnStreamUpdated, ()),
|
||
|
|
||
|
AUI_METHOD(void, OnFatalErrorReported, (const NetError&, error)),
|
||
|
|
||
|
AUI_METHOD(void, OnEnd, ()),
|
||
|
|
||
|
AUI_METHOD(void, OnFinalize, ())
|
||
|
);
|
||
|
}
|