-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement service for manipulating intercepted packets
- Loading branch information
Showing
10 changed files
with
77 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
using Tanji.Core.Habbo.Canvas; | ||
using Tanji.Core.Services; | ||
using Tanji.Core.Habbo.Canvas; | ||
using Tanji.Core.Habbo.Network; | ||
|
||
namespace Tanji.Core.API; | ||
|
||
public interface IInstaller | ||
{ | ||
IGame Game { get; } | ||
IHConnection Connection { get; } | ||
IHConnection<IPacketMiddlemanService> Connection { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
namespace Tanji.Core.Habbo.Network; | ||
using Tanji.Core.Services; | ||
|
||
public interface IHConnection | ||
namespace Tanji.Core.Habbo.Network; | ||
|
||
public interface IHConnection<TMiddleman> where TMiddleman : IPacketMiddlemanService | ||
{ | ||
HNode? Local { get; } | ||
HNode? Remote { get; } | ||
|
||
Incoming? In { get; } | ||
Outgoing? Out { get; } | ||
|
||
TMiddleman? Middleman { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Tanji.Core.Services; | ||
|
||
public interface IPacketMiddlemanService | ||
{ | ||
ValueTask<bool> PacketInboundAsync(Memory<byte> buffer); | ||
ValueTask<bool> PacketOutboundAsync(Memory<byte> buffer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Tanji.Core/Services/Implementations/PacketMiddlemanService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Tanji.Core.Services; | ||
|
||
public class PacketMiddlemanService : IPacketMiddlemanService | ||
{ | ||
public ValueTask<bool> PacketInboundAsync(Memory<byte> buffer) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
public ValueTask<bool> PacketOutboundAsync(Memory<byte> buffer) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |