Table of Contents

Enum ConnectionMode

Namespace
DuetAPI.Connection
Assembly
DuetAPI.dll

Supported connection types for client connections

[JsonConverter(typeof(JsonStringEnumConverter<ConnectionMode>))]
public enum ConnectionMode

Fields

CodeStream = 4

Code stream mode. This mode lets users send and receive code replies asynchronously using a single socket connection

Command = 1

Command mode. This allows clients to send general purpose messages to the control server like G-codes or requests of the full object model

Intercept = 2

Interception mode. This allows clients to intercept G/M/T-codes before or after they are initially processed

PluginService = 5

Plugin service mode. This mode is used internally and should not be used by third-party plugins!

Subscribe = 3

Subscription mode. In this mode object model updates are transmitted to the client after each update

Unknown = 0

Unknown connection type. If this is used, the connection is immediately terminated