Class Network
Information about the network subsystem
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public sealed class Network : ModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChanging
Fields
DefaultHostname
Fallback hostname if the Name
is invalid
Declaration
public const string DefaultHostname = "duet"
Field Value
Type | Description |
---|---|
string |
DefaultName
Default name of the machine
Declaration
public const string DefaultName = "My Duet"
Field Value
Type | Description |
---|---|
string |
DefaultPassword
Default network password of the machine
Declaration
public const string DefaultPassword = "reprap"
Field Value
Type | Description |
---|---|
string |
Properties
CorsSite
If this is set, the web server will allow cross-origin requests via the Access-Control-Allow-Origin header
Declaration
[SbcProperty(true)]
public string? CorsSite { get; set; }
Property Value
Type | Description |
---|---|
string |
Hostname
Hostname of the machine
Declaration
public string Hostname { get; set; }
Property Value
Type | Description |
---|---|
string |
Interfaces
List of available network interfaces
Declaration
[SbcProperty(true)]
public ModelCollection<NetworkInterface> Interfaces { get; }
Property Value
Type | Description |
---|---|
ModelCollection<NetworkInterface> |
See Also
Name
Name of the machine
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |