Click or drag to resize

Server Properties

The Server type exposes the following members.

Properties
 NameDescription
Public propertyActive Gets or sets the flag defining whether the server is listening for incoming connections. Setting this property to true or false calls the Open or Close methods, accordingly.
Public propertyBindingObsolete.
Gets the ServerBinding instance. In most cases, the IPv4 ServerBinding instance is returned.
Public propertyBindings Gets the current ServerBindings instance. This instance is not used by the Server class itself.
Public propertyBindingV4 Gets the IPv4 ServerBinding instance. The returned instance can be used to fine-tune the IPv4 server endpoint.
Public propertyBindingV6 Gets the IPv6 ServerBinding instance. The returned instance can be used to fine-tune the IPv6 server endpoint.
Public propertyBindV4 Gets or sets the flag indicating whether the server should listen for IPv4 connections. Setting this flag doesn't have any immediate effect. It's value is used only when the server is opened (either by setting the Active property to true or by directly calling the Open method).
Public propertyBindV6 Gets or sets the flag indicating whether the server should listen for IPv6 connections. Setting this flag doesn't have any immediate effect. Its value is used only when the server is opened (either by setting the Active property to true or by directly calling the Open method).
Public propertyCloseConnectionsOnShutdown Gets or sets the flag indicating whether the currently open client connections should be appropriately closed on server shutdown. The default value is true.
Public propertyConnectionClass Gets or sets an alternative Connection class to be used for incoming data connections. The class described by the assigned Type must be a descendant of the Connection class, and will be used for all connections that are established after the property has been set. Existing connections are not affected by changing the property. If the ConnectionType property value is null (default), instances of the Connection base class will be used.
Protected propertyDefaultPort Gets or sets the default port number.
Public propertyEnableNagle Gets or the sets flag indicating whether the Nagle's algorithm should be used. Setting this flag doesn't have any immediate effect. Its value is used only when the server is opened (either by setting the Active property to true or by directly calling the Open method).
Public propertyEthernetAdapterToBindTo Indicates if the user wants to bind to a specific adapter This is valid on systems which support multiple adapters. Ignored on systems which do not support multiple adapters. Only valid if the address of the HTTP server is defined as 0.0.0.0 - Ignored otherwise Set to EthernetAdapterType.EthernetUnknownAdapter if no specific binding is required. On units which just have a single adapter - we can accept a connection from anywhere - In this case this setting is ignored On units which have multiple adapters - If the user specified EthernetCSAdapter then accept connection from Control Subnet side only - If the user specified EthernetLAN2Adapter then accept connection from LAN2 side only - If the user specified EthernetLANAdapter, then accept connections from anywhere but from the Control subnet side and LAN2
Public propertyMaxLineLength Gets or sets the default MaxLineLength value for all newly created Connections.
Public propertyMaxLineLengthEnabled Gets or sets the default MaxLineLengthEnabled value for all newly created Connections.
Public propertyPort Gets or sets the port number on which the server will listen.
Public propertyTimeout Gets or sets the default Timeout value for all newly created Connections.
Public propertyTimeoutEnabled Gets or sets the default TimeoutEnabled value for all newly created Connections.
Top
See Also