Interface IPasvListener
Wraps a TCPListener so we can easily use it in our commands that require a passive data connection.
Inherited Members
Namespace: FubarDev.FtpServer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface IPasvListener : IDisposable
Properties
| Improve this Doc View SourcePasvEndPoint
Gets the Endpoint under which the listener is reachable by clients.
Declaration
IPEndPoint PasvEndPoint { get; }
Property Value
| Type | Description |
|---|---|
| IPEndPoint |
Methods
| Improve this Doc View SourceAcceptPasvClientAsync()
Accept a client from a PASV command.
Declaration
Task<TcpClient> AcceptPasvClientAsync()
Returns
| Type | Description |
|---|---|
| Task<TcpClient> | A TcpClient with which to communicate with the client. |
Exceptions
| Type | Condition |
|---|---|
| SocketException | Network error, see SocketError. |
| ObjectDisposedException | Listener was disposed of. |