Reorganize project structure

This commit is contained in:
Stone_Red
2026-06-19 00:56:46 +02:00
parent 6f58eefb66
commit 95d88f1a8d
84 changed files with 267 additions and 186 deletions
+19
View File
@@ -0,0 +1,19 @@
using System.Net.Sockets;
namespace RemSox.Shared.Networking;
/// <summary>
/// Simple wrapper around TcpClient to hold connection-scoped resources safely.
/// </summary>
public class TcpConnection(TcpClient client) : IDisposable
{
public TcpClient Client { get; } = client;
public NetworkStream Stream { get; } = client.GetStream();
public object SendLock { get; } = new();
public void Dispose()
{
Stream.Dispose();
Client.Dispose();
}
}