TelnetAppender SocketHandler Class | Apache log4net™ SDK Documentation

Helper class to manage connected clients
Inheritance Hierarchy

System
Object
log4net.Appender
TelnetAppender
SocketHandler

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected class SocketHandler : IDisposable

    Protected Class SocketHandler
    	Implements IDisposable

    protected ref class SocketHandler : IDisposable

    type SocketHandler =
        class
            interface IDisposable
        end

The TelnetAppender
SocketHandler type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| TelnetAppender SocketHandler | Opens a new server port on

Top
Properties

| Name | Description
--- | --- | ---
| HasConnections | Test if this handler has active connections

Top
Methods

| Name | Description
--- | --- | ---
| Dispose | Close all network connections
| 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. (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.)
| Send | Sends a string message to each of the connected clients
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

The SocketHandler class is used to accept connections from clients. It is threaded so that clients can connect/disconnect asynchronously.

See Also

#### Reference

log4net.Appender Namespace