Fix client crash when historic is too big

Because you deserve it
This commit is contained in:
2019-05-10 20:27:37 +02:00
parent b144629939
commit 46cb938ea2
2 changed files with 56 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
namespace PlantBox.Shared.Communication
{
@@ -32,5 +33,10 @@ namespace PlantBox.Shared.Communication
/// Port used by the broker to accept clients
/// </summary>
public const int TCP_CLIENT_PORT = 1403;
/// <summary>
/// Bytes to read at a time in a <see cref="NetworkStream"/>
/// </summary>
public const int BUFFER_SIZE = 4096;
}
}