Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/clovershell-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'FtpServer/ILogHandler.cs')
-rw-r--r--FtpServer/ILogHandler.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/FtpServer/ILogHandler.cs b/FtpServer/ILogHandler.cs
new file mode 100644
index 0000000..87b7c9a
--- /dev/null
+++ b/FtpServer/ILogHandler.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Net;
+
+namespace mooftpserv
+{
+ /// <summary>
+ /// Interface for a logger. Methods should be self-explanatory.
+ /// </summary>
+ public interface ILogHandler
+ {
+ /// <summary>
+ /// Make a new instance for a new session with the given peer.
+ /// Each FTP session uses a separate, cloned instance.
+ /// </summary>
+ ILogHandler Clone(IPEndPoint peer);
+
+ void NewControlConnection();
+ void ClosedControlConnection();
+ void ReceivedCommand(string verb, string arguments);
+ void SentResponse(uint code, string description);
+ void NewDataConnection(IPEndPoint remote, IPEndPoint local, bool passive);
+ void ClosedDataConnection(IPEndPoint remote, IPEndPoint local, bool passive);
+ }
+}
+