Convert TCP networking to sync and binary, add DHCP and IP stack init on boot

This commit is contained in:
Stone_Red
2026-06-18 23:54:23 +02:00
parent 79bc87f5c7
commit ba5d670d1a
8 changed files with 345 additions and 143 deletions
+1 -2
View File
@@ -7,12 +7,11 @@ public class TcpConnection(TcpClient client) : IDisposable
{
public TcpClient Client { get; } = client;
public NetworkStream Stream { get; } = client.GetStream();
public SemaphoreSlim SendLock { get; } = new(1, 1);
public object SendLock { get; } = new();
public void Dispose()
{
Stream.Dispose();
Client.Dispose();
SendLock.Dispose();
}
}