mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
27 lines
891 B
C#
27 lines
891 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Robust.Shared.Network
|
|
{
|
|
/// <summary>
|
|
/// The server version of the INetManager.
|
|
/// </summary>
|
|
[NotContentImplementable]
|
|
public interface IServerNetManager : INetManager
|
|
{
|
|
public delegate Task<NetApproval> NetApprovalDelegate(NetApprovalEventArgs eventArgs);
|
|
|
|
byte[]? CryptoPublicKey { 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);
|
|
}
|
|
}
|