-
Notifications
You must be signed in to change notification settings - Fork 28
/
Defaults.cs
43 lines (37 loc) · 1.34 KB
/
Defaults.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace DuetAPI.Connection
{
/// <summary>
/// Static class that holds the connection defaults
/// </summary>
public static class Defaults
{
/// <summary>
/// Current API protocol version number
/// </summary>
public const int ProtocolVersion = 11;
/// <summary>
/// Default directory in which DSF-related UNIX sockets reside
/// </summary>
public const string SocketDirectory = "/var/run/dsf";
/// <summary>
/// Default UNIX socket file for DuetControlServer
/// </summary>
public const string SocketFile = "dcs.sock";
/// <summary>
/// Default fully-qualified path to the UNIX socket for DuetControlServer
/// </summary>
public const string FullSocketPath = "/var/run/dsf/dcs.sock";
/// <summary>
/// Default code channel to use
/// </summary>
public const CodeChannel InputChannel = CodeChannel.SBC;
/// <summary>
/// Default number of codes to buffer in <see cref="ConnectionMode.CodeStream"/> mode
/// </summary>
public const int CodeBufferSize = 32;
/// <summary>
/// Maximum number of codes to buffer in <see cref="ConnectionMode.CodeStream"/> mode
/// </summary>
public const int MaxCodeBufferSize = 256;
}
}