Preserve peer locality across schema transports

This commit is contained in:
Meta Vens 2026-07-19 18:50:22 +01:00
commit 6beca4a80a
6 changed files with 50 additions and 5 deletions

View file

@ -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>