From b7c611a76e4bf619d28f85f46c9fad1bc3255e8a Mon Sep 17 00:00:00 2001 From: Mikhail Mitrofanov Date: Fri, 14 Mar 2025 13:15:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B8=D0=B4=D0=B5=D0=BD=D1=82=D0=B8=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=D0=B0=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B2=D0=B7=D0=B0=D0=B8=D0=BC=D0=BE=D0=B4=D0=B5=D0=B9?= =?UTF-8?q?=D1=81=D1=82=D0=B2=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mROA/Implementation/Frontend/NetworkFrontendBridge.cs | 3 ++- mROA/Implementation/NextGenerationInteractionModule.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mROA/Implementation/Frontend/NetworkFrontendBridge.cs b/mROA/Implementation/Frontend/NetworkFrontendBridge.cs index 4efe1fd..8bd0aba 100644 --- a/mROA/Implementation/Frontend/NetworkFrontendBridge.cs +++ b/mROA/Implementation/Frontend/NetworkFrontendBridge.cs @@ -7,10 +7,10 @@ namespace mROA.Implementation.Frontend { public class NetworkFrontendBridge : IFrontendBridge { + private readonly IPEndPoint _ipEndPoint; private readonly TcpClient _tcpClient = new(); private NextGenerationInteractionModule? _interactionModule; private ISerializationToolkit? _serialization; - private readonly IPEndPoint _ipEndPoint; public NetworkFrontendBridge(IPEndPoint ipEndPoint) { @@ -48,6 +48,7 @@ namespace mROA.Implementation.Frontend var assignment = _serialization.Deserialize(welcomeMessage.Data)!; + _interactionModule.ConnectionId = -assignment.Id; TransmissionConfig.OwnershipRepository = new StaticOwnershipRepository(assignment.Id); } } diff --git a/mROA/Implementation/NextGenerationInteractionModule.cs b/mROA/Implementation/NextGenerationInteractionModule.cs index f7ece15..2aa7163 100644 --- a/mROA/Implementation/NextGenerationInteractionModule.cs +++ b/mROA/Implementation/NextGenerationInteractionModule.cs @@ -14,7 +14,7 @@ namespace mROA.Implementation private readonly List _messageBuffer = new(128); private Task? _currentReceiving; private ISerializationToolkit? _serialization; - public int ConnectionId { get; private set; } + public int ConnectionId { get; set; } public Stream? BaseStream { get; set; }