Server Class
Namespace: Rebex.Net.Servers.Core
Assembly: Rebex.FileServer.dll (version 7.0.9119)
Represents the base class for servers. In most cases, use FileServer instead.
Syntax
public class Server : IDisposable
Implements
Inherited Members
Constructors
Name | Description |
---|---|
Server() | Creates an instance of a generic server. |
Properties
Name | Description |
---|---|
Bindings | Gets a read-only collection of server bindings. |
IsRunning | Gets a value indicating whether the server is currently running. |
Keys | Gets a collection of server keys. |
LogWriter | Gets or sets the log writer used by this object. |
Modules | Gets an enumerator for currently bound modules. |
Sessions | Gets an enumerator for currently active sessions. |
Settings | Gets server settings. |
Users | Gets a collection of users. Provides a simple user database which is used by default when no custom authentication has been defined. |
Methods
Name | Description |
---|---|
Bind(ServerModule) | Binds the specified module to its default port on all network interfaces. |
Bind(Int32, ServerModule) | Binds the specified module to the specified port on all network interfaces. |
Bind(IPEndPoint, ServerModule) | Binds the specified module to the specified endpoint. |
Dispose() | Disposes the server object, releasing all listeners and sessions. |
Start() | Starts the server. |
Stop() | Stops the server. |
Unbind() | Unbinds all modules. |
Unbind(ServerModule) | Unbinds the specified module from all endpoints. |
Unbind(Int32) | Unbinds all modules bound to the specified port. |
Unbind(IPAddress) | Unbinds all modules bound to the specified address. |
Unbind(IPEndPoint) | Unbinds all modules bound to the specified endpoint. |
Events
Name | Description |
---|---|
Authentication | Occurs when client is being authenticated. |
Connecting | Occurs when a client is connecting. |
Disconnected | Occurs when a client has disconnected. |
ErrorOccurred | Occurs when an error occurs while processing requests. |
PreAuthentication | Occurs when client authentication is about to start. |