This is base class for Socket and Session based servers.
| C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Use TCP_Server class instead")] public abstract class SocketServer : Component
<ObsoleteAttribute("Use TCP_Server class instead")> _ Public MustInherit Class SocketServer _ Inherits Component
[ObsoleteAttribute(L"Use TCP_Server class instead")] public ref class SocketServer abstract : public Component
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| SocketServer()()()() |
Default constructor.
| |
| AddSession(SocketServerSession) |
Adds specified session to sessions collection.
| |
| BindInfo |
Gets or set socket binding info. Use this property to specify on which IP,port server
listnes and also if is SSL or STARTTLS support.
| |
| CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) | |
| Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) | |
| CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) | |
| DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) | |
| Dispose()()()() |
Clean up any resources being used and stops server.
| |
| Dispose(Boolean) |
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component.) | |
| Disposed |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.) | |
| Enabled |
Runs and stops server.
| |
| Equals(Object) | (Inherited from Object.) | |
| Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) | |
| Finalize()()()() |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetLifetimeService()()()() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| GetService(Type) | (Inherited from Component.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| InitializeLifetimeService()()()() |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) | |
| InitNewSession(Socket, IPBindInfo) |
Initialize and start new session here. Session isn't added to session list automatically,
session must add itself to server session list by calling AddSession().
| |
| LogCommands |
Gets or sets if to log commands.
| |
| MaxBadCommands |
Gets or sets maximum bad commands allowed to session.
| |
| MaxConnections |
Gets or sets maximum allowed connections.
| |
| MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnSysError(String, Exception) | ||
| RemoveSession(SocketServerSession) |
Removes specified session from sessions collection.
| |
| SessionIdleTimeOut |
Session idle timeout in milliseconds.
| |
| Sessions |
Gets active sessions.
| |
| Site | (Inherited from Component.) | |
| StartServer()()()() |
Starts server.
| |
| StopServer()()()() |
Stops server. NOTE: Active sessions aren't cancled.
| |
| SysError |
Occurs when server or session has system error(unhandled error).
| |
| ToString()()()() |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) |
| Object | ||||
| MarshalByRefObject | ||||
| Component | ||||
| SocketServer | ||||
| FTP_Server | ||||