Preserve peer locality across schema transports
This commit is contained in:
parent
899aea980f
commit
6beca4a80a
6 changed files with 50 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace GameCult.Networking
|
||||
|
|
@ -33,6 +34,13 @@ namespace GameCult.Networking
|
|||
where TMessage : ICultNetSchemaMessage;
|
||||
}
|
||||
|
||||
/// <summary>Optional physical peer location used for locality-sensitive transport negotiation.</summary>
|
||||
public interface ICultNetSchemaServerPeerLocation
|
||||
{
|
||||
/// <summary>Gets the remote physical endpoint when the transport exposes one.</summary>
|
||||
EndPoint? RemoteEndPoint { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Optional transport-neutral peer lifetime surface for stateful service bridges.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue