This commit is contained in:
2019-03-23 11:37:52 +01:00
parent faa54aca0e
commit 233523ca4d
5 changed files with 90 additions and 0 deletions

View File

@@ -4,14 +4,29 @@ using System.Text;
namespace PlantBox.Shared.Communication
{
/// <summary>
/// Contains all informations used to communicate
/// </summary>
public static class Connection
{
// UDP
/// <summary>
/// Port used by broadcast discovery
/// </summary>
public const int UDP_PORT = 1401;
/// <summary>
/// Request sent for a discovery
/// </summary>
public static readonly byte[] UDP_REQUEST = { 102, 210, 48, 255 };
/// <summary>
/// Reply sent for a discovery
/// </summary>
public static readonly byte[] UDP_REPLY = { 102, 210, 48, 0 };
// TCP
/// <summary>
/// Port used by the broker to accept clients
/// </summary>
public const int TCP_PORT = 1402;
}
}