Add Protocol implementation
This commit is contained in:
17
PlantBox.Shared/Communication/Connection.cs
Normal file
17
PlantBox.Shared/Communication/Connection.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PlantBox.Shared.Communication
|
||||
{
|
||||
public static class Connection
|
||||
{
|
||||
// UDP
|
||||
public const int UDP_PORT = 1401;
|
||||
public static readonly byte[] UDP_REQUEST = { 102, 210, 48, 255 };
|
||||
public static readonly byte[] UDP_REPLY = { 102, 210, 48, 0 };
|
||||
|
||||
// TCP
|
||||
public const int TCP_PORT = 1402;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user