Server Class |
public abstract class Server : IDisposable
The Server type exposes the following members.
| Name | Description | |
|---|---|---|
| Server | Creates a new instance of the Server class. The constructor checks the current platform capabilities and instantiates the appropriate IPv4 and IPv6 bindings. |
| Name | Description | |
|---|---|---|
| Active | 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. | |
| Binding | Obsolete. Gets the ServerBinding instance. In most cases, the IPv4 ServerBinding instance is returned. | |
| Bindings | Gets the current ServerBindings instance. This instance is not used by the Server class itself. | |
| BindingV4 | Gets the IPv4 ServerBinding instance. The returned instance can be used to fine-tune the IPv4 server endpoint. | |
| BindingV6 | Gets the IPv6 ServerBinding instance. The returned instance can be used to fine-tune the IPv6 server endpoint. | |
| BindV4 | 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). | |
| BindV6 | 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). | |
| CloseConnectionsOnShutdown | Gets or sets the flag indicating whether the currently open client connections should be appropriately closed on server shutdown. The default value is true. | |
| ConnectionClass | 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. | |
| DefaultPort | Gets or sets the default port number. | |
| EnableNagle | 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). | |
| EthernetAdapterToBindTo | 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 | |
| MaxLineLength | Gets or sets the default MaxLineLength value for all newly created Connections. | |
| MaxLineLengthEnabled | Gets or sets the default MaxLineLengthEnabled value for all newly created Connections. | |
| Port | Gets or sets the port number on which the server will listen. | |
| Timeout | Gets or sets the default Timeout value for all newly created Connections. | |
| TimeoutEnabled | Gets or sets the default TimeoutEnabled value for all newly created Connections. |
| Name | Description | |
|---|---|---|
| Close | This method causes the server to stop listening for incoming connections. | |
| Dispose | Disposes the Server Connection. | |
| Dispose(Boolean) | Disposes of the current instance and releases all resources used by it. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Open | This method causes the server to start listening for incoming connections. | |
| ShouldSerializePort | Returns true when the DefaultPort is not equal to the Port. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |