Skip to main content

FtpListener Class

Namespace: GHIElectronics.TinyCLR.Networking · Assembly: GHIElectronics.TinyCLR.Networking.Ftp

The base class for all Ftp listeners implemented all basic functionalities like context queue management, authentication events

public class FtpListener : IDisposable

Constructors

FtpListener()

public FtpListener() : this(true)

No description available.

Properties

Prefixes

public ArrayList Prefixes { get; }

List of prefixes that the listener is listening to

IsListening

public bool IsListening { get; }

Flag indicates whether the listener is listening to contexts or not

Methods

AutoResetEvent( false)

protected AutoResetEvent m_ContextQueueLock = new AutoResetEvent(false)

No description available.

ParameterTypeDescription
false``

Returns AutoResetEvent m_ContextQueueLock = new

Start()

public virtual void Start()

Start the listener

Stop()

public virtual void Stop()

Stop the listener

GetContext()

public FtpListenerContext GetContext()

Get the oldest context from the context queue the method would be block until there is a pending context

Returns FtpListenerContext

Events

AuthenticationEvent

public static event UserAuthenticator AuthenticationEvent

No description available.

Fields

m_ContextQueue

protected Queue m_ContextQueue

No description available.

m_Prefixes

protected ArrayList m_Prefixes

No description available.