The Server type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Server |
Creates an instance of a generic server.
|
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.
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (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.) | |
| Start |
Starts the server.
| |
| Stop |
Stops the server.
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
| Unbind()()()() |
Unbinds all modules.
| |
| 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.
| |
| Unbind(ServerModule) |
Unbinds the specified module from all endpoints.
|
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.
|
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.
|