more work on gtk & code cleanup
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Pilz.Net;
|
||||
public abstract class ConnectionManagerBase(int port)
|
||||
{
|
||||
private const int HEADER_LENGTH = 12;
|
||||
|
||||
|
||||
private bool listening = false;
|
||||
private readonly Dictionary<int, Dictionary<int, byte[]>> dicData = [];
|
||||
|
||||
@@ -122,13 +122,15 @@ public abstract class ConnectionManagerBase(int port)
|
||||
finalBuffer.Add((byte)(value >> 16 & 0xFF));
|
||||
finalBuffer.Add((byte)(value >> 8 & 0xFF));
|
||||
finalBuffer.Add((byte)(value & 0xFF));
|
||||
};
|
||||
}
|
||||
;
|
||||
void addHeader(int packageID, int packagesCount)
|
||||
{
|
||||
addInteger(dataID); // Data ID
|
||||
addInteger(packageID); // Package ID
|
||||
addInteger(packagesCount); // Packages Count
|
||||
};
|
||||
}
|
||||
;
|
||||
|
||||
// Send data (this if statement and else content might be useless)
|
||||
if (data.Length > maxDataSize)
|
||||
|
||||
Reference in New Issue
Block a user