Skip to content

Commit

Permalink
Updated to latest Aurora.Engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolftein committed Feb 16, 2024
1 parent 136f7b3 commit 1517ccf
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 13 deletions.
29 changes: 26 additions & 3 deletions Source/Private/Network/COM_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,27 @@ inline namespace COM
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

HRESULT Network_Client::Attach(Network_Protocol_ * Protocol)
HRESULT Network_Client::SetAttachment(vbInt32 Attachment)
{
mWrapper->Attach(CCast<Network_Protocol>(Protocol));
mWrapper->SetAttachment(Attachment);
return S_OK;
}

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

HRESULT Network_Client::GetAttachment(vbInt32 * Result)
{
(* Result) = mWrapper->GetAttachment();
return S_OK;
}

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

HRESULT Network_Client::SetProtocol(Network_Protocol_ * Protocol)
{
mWrapper->SetProtocol(CCast<Network_Protocol>(Protocol));
return S_OK;
}

Expand All @@ -39,9 +57,14 @@ inline namespace COM
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

HRESULT Network_Client::Write(BinaryWriter_ * Message)
HRESULT Network_Client::Write(BinaryWriter_ * Message, vbBool Urgent)
{
mWrapper->Write<UInt08>(CCast<BinaryWriter>(Message).GetData());

if (VBIsTrue(Urgent))
{
mWrapper->Flush();
}
return S_OK;
}

Expand Down
20 changes: 15 additions & 5 deletions Source/Private/Network/COM_Client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ inline namespace COM
[object, uuid("59C3336C-C941-11EE-ADEA-1418C3A8EDB8"), pointer_default(unique)]
__interface Network_Client_
{
HRESULT Attach([in] Network_Protocol_ * Protocol);
HRESULT SetAttachment([in] vbInt32 Attachment);

HRESULT GetAttachment([out, retval] vbInt32 * Result);

HRESULT SetProtocol([in] Network_Protocol_ * Protocol);

HRESULT Close([in] vbBool Forcibly);

HRESULT Write([in] BinaryWriter_ * Message);
HRESULT Write([in] BinaryWriter_ * Message, [in, defaultvalue(false)] vbBool Urgent);

HRESULT Flush();

Expand All @@ -45,14 +49,20 @@ inline namespace COM
{
public:

// \see Network_Client_::Attach
HRESULT Attach(Network_Protocol_ * Protocol) override;
// \see Network_Client_::SetAttachment
HRESULT SetAttachment(vbInt32 Attachment) override;

// \see Network_Client_::GetAttachment
HRESULT GetAttachment(vbInt32 * Result) override;

// \see Network_Client_::SetProtocol
HRESULT SetProtocol(Network_Protocol_ * Protocol) override;

// \see Network_Client_::Close
HRESULT Close(vbBool Forcibly) override;

// \see Network_Client_::Write
HRESULT Write(BinaryWriter_ * Message) override;
HRESULT Write(BinaryWriter_ * Message, vbBool Urgent) override;

// \see Network_Client_::Flush
HRESULT Flush() override;
Expand Down
4 changes: 2 additions & 2 deletions Source/Private/Network/COM_Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ inline namespace COM
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

HRESULT Network_Server::Attach(Network_Protocol_ * Protocol)
HRESULT Network_Server::SetProtocol(Network_Protocol_ * Protocol)
{
mWrapper->Attach(CCast<Network_Protocol>(Protocol));
mWrapper->SetProtocol(CCast<Network_Protocol>(Protocol));
return S_OK;
}

Expand Down
6 changes: 3 additions & 3 deletions Source/Private/Network/COM_Server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inline namespace COM
[object, uuid("70DADE73-C941-11EE-ADEA-1418C3A8EDB8"), pointer_default(unique)]
__interface Network_Server_
{
HRESULT Attach([in] Network_Protocol_ * Protocol);
HRESULT SetProtocol([in] Network_Protocol_ * Protocol);

HRESULT Disconnect([in] vbBool Forcibly);

Expand All @@ -42,8 +42,8 @@ inline namespace COM
{
public:

// \see Network_Server_::Attach
HRESULT Attach(Network_Protocol_ * Protocol) override;
// \see Network_Server_::SetProtocol
HRESULT SetProtocol(Network_Protocol_ * Protocol) override;

// \see Network_Server_::Disconnect
HRESULT Disconnect(vbBool Forcibly) override;
Expand Down

0 comments on commit 1517ccf

Please sign in to comment.