blob: 87b7c9add3db618d69b13cab04b865ad8103a7bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}
}
|