mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* WebSocket-based data transfer system * Move resource downloads/uploads to the new transfer system Should drastically increase the permitted practical size * Transfer impl for Lidgren * Async impl for receive stream * Use unbounded channel for Lidgren * Add metrics * More comments * Add serverside stream limit to avoid being a DoS vector * Fix tests * Oops forgot to actually implement sequence channels in NetMessage * Doc comment for NetMessage.SequenceChannel * Release notes
24 lines
684 B
C#
24 lines
684 B
C#
using Robust.Server.Console;
|
|
using Robust.Server.Player;
|
|
using Robust.Shared.Log;
|
|
using Robust.Shared.Network;
|
|
using Robust.Shared.Network.Transfer;
|
|
|
|
namespace Robust.Server.Network.Transfer;
|
|
|
|
internal sealed class ServerTransferTestManager(
|
|
ITransferManager manager,
|
|
ILogManager logManager,
|
|
IConGroupController controller,
|
|
IPlayerManager playerManager)
|
|
: TransferTestManager(manager, logManager)
|
|
{
|
|
protected override bool PermissionCheck(INetChannel channel)
|
|
{
|
|
if (!playerManager.TryGetSessionByChannel(channel, out var session))
|
|
return false;
|
|
|
|
return controller.CanCommand(session, TransferTestCommand.CommandKey);
|
|
}
|
|
}
|