примеры клиента и сервера написаны

This commit is contained in:
micialware committed 2025-02-05 15:05:49 +03:00
1 parent 5e805a28b0
commit 2c2f554302
6 files changed
+54 -15

No files matched your search

@@ -0,0 +1,26 @@
using System.Net;
using System.Net.Sockets;
using mROA.Abstract;
namespace mROA.Implementation;
public class NetworkFrontendBridge : IFrontendBridge
{
private TcpClient _tcpClient;
public NetworkFrontendBridge(IPEndPoint serverEndPoint)
{
_tcpClient = new TcpClient(serverEndPoint);
}
public void Inject<T>(T dependency)
{
if (dependency is StreamBasedFrontendInteractionModule interactionModule)
{
interactionModule.ServerStream = _tcpClient.GetStream();
}
}
public void Bake()
{
}
}