This class implements generic TCP session based server.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public class TCP_Server<T> : IDisposable where T : new(), TCP_ServerSession
Public Class TCP_Server(Of T As {New, TCP_ServerSession}) Implements IDisposable
generic<typename T> where T : gcnew(), TCP_ServerSession public ref class TCP_Server : IDisposable
type TCP_Server<'T when 'T : new() and TCP_ServerSession> = class interface IDisposable end
Generic Template Parameters
- T
[Missing <typeparam name="T"/> documentation for "T:LumiSoft.Net.TCP.TCP_Server`1"]
Members
All Members | Constructors | Methods | Properties | Events | |
Icon | Member | Description |
---|---|---|
TCP_Server<(Of <(<'T>)>)>()()()() |
Default constructor.
| |
Bindings |
Gets or sets TCP server IP bindings.
| |
ConnectionsProcessed |
Gets how many connections this TCP server has processed.
| |
Dispose()()()() |
Cleans up any resources being used.
| |
Disposed |
This event is raised when TCP server has disposed.
| |
Equals(Object) | (Inherited from Object.) | |
Error |
This event is raised when TCP server has unknown unhandled error.
| |
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 a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
IsDisposed |
Gets if server is disposed.
| |
IsRunning |
Gets if server is running.
| |
LocalEndPoints |
Gets local listening IP end points.
| |
Logger |
Gets or sets logger. Value null means no logging.
| |
MaxConnections |
Gets or sets maximum allowed concurent connections. Value 0 means unlimited.
| |
MaxConnectionsPerIP |
Gets or sets maximum allowed connections for 1 IP address. Value 0 means unlimited.
| |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDisposed()()()() |
Raises Disposed event.
| |
OnMaxConnectionsExceeded(T) |
Is called when new incoming session and server maximum allowed connections exceeded.
| |
OnMaxConnectionsPerIPExceeded(T) |
Is called when new incoming session and server maximum allowed connections per connected IP exceeded.
| |
OnStarted()()()() |
Raises Started event.
| |
OnStopped()()()() |
Raises Stopped event.
| |
Restart()()()() |
Restarts TCP server.
| |
SessionCreated |
This event is raised when TCP server creates new session.
| |
SessionIdleTimeout |
Gets or sets maximum allowed session idle time in seconds, after what session will be terminated. Value 0 means unlimited,
but this is strongly not recommened.
| |
Sessions |
Gets TCP server active sessions.
| |
Start()()()() |
Starts TCP server.
| |
Started |
This event is raised when TCP server has started.
| |
StartTime |
Gets the time when server was started.
| |
Stop()()()() |
Stops TCP server, all active connections will be terminated.
| |
Stopped |
This event is raised when TCP server has stopped.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
Inheritance Hierarchy
Object | ||
TCP_Server<(Of <(<'T>)>)> | ||
FTP_Server | ||
IMAP_Server | ||
POP3_Server | ||
SMTP_Server |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119