Files
RobustToolbox/Robust.Shared/Network/IServerNetManager.cs
Acruid 2183cd7ca1 Massive Namespace Cleanup (#1544)
* Removed the Interfaces folder.
* All objects inside the GameObjects subfolders are now in the GameObjects namespace.
* Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces.
* Simplified Robust.client.Graphics namespace.
* Automated remove redundant using statements.
2021-02-10 23:27:19 -08:00

26 lines
858 B
C#

using System;
using System.Threading.Tasks;
namespace Robust.Shared.Network
{
/// <summary>
/// The server version of the INetManager.
/// </summary>
public interface IServerNetManager : INetManager
{
public delegate Task<NetApproval> NetApprovalDelegate(NetApprovalEventArgs eventArgs);
byte[]? RsaPublicKey { get; }
AuthMode Auth { get; }
Func<string, Task<NetUserId?>>? AssignUserIdCallback { get; set; }
NetApprovalDelegate? HandleApprovalCallback { get; set; }
/// <summary>
/// Disconnects this channel from the remote peer.
/// </summary>
/// <param name="channel">NetChannel to disconnect.</param>
/// <param name="reason">Reason why it was disconnected.</param>
void DisconnectChannel(INetChannel channel, string reason);
}
}