30 lines
676 B
C++
30 lines
676 B
C++
|
/***
|
||
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: AuNetSocketConnectOperation.cpp
|
||
|
Date: 2022-8-17
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#include "Networking.hpp"
|
||
|
#include "AuNetSocket.hpp"
|
||
|
#include "AuNetSocketConnectOperation.hpp"
|
||
|
#include "AuNetError.hpp"
|
||
|
|
||
|
namespace Aurora::IO::Net
|
||
|
{
|
||
|
SocketConnectOperation::SocketConnectOperation(SocketBase *pParent) :
|
||
|
pParent(pParent)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void SocketConnectOperation::OnOverlappedComplete()
|
||
|
{
|
||
|
this->pParent->ConnectFinished();
|
||
|
}
|
||
|
|
||
|
void SocketConnectOperation::OnOverlappedFailure(const NetError &error)
|
||
|
{
|
||
|
this->pParent->ConnectFailed(error);
|
||
|
}
|
||
|
}
|