PITrail Event
Fired when any protocol level communication occurs.
Syntax
public event OnPITrailHandler OnPITrail; public delegate void OnPITrailHandler(object sender, OftpclientPITrailEventArgs e); public class OftpclientPITrailEventArgs : EventArgs { public int Direction { get; } public string Data { get; }
public byte[] DataB { get; } public int CommandId { get; } public string CommandDescription { get; } }
Public Event OnPITrail As OnPITrailHandler Public Delegate Sub OnPITrailHandler(sender As Object, e As OftpclientPITrailEventArgs) Public Class OftpclientPITrailEventArgs Inherits EventArgs Public ReadOnly Property Direction As Integer Public ReadOnly Property Data As String
Public ReadOnly Property DataB As Byte() Public ReadOnly Property CommandId As Integer Public ReadOnly Property CommandDescription As String End Class
Remarks
This event provides information about the protocol level communication between the client and server.
The Direction parameter specifies who sent the command.
0 (Client) | The command originated from the connected client. |
1 (Server) | The command originated from the server. |
The CommandId and CommandDescription parameters specify which command was sent. The table below shows possible values.
CommandId | CommandDescription |
50 | SFPA (Start File Positive Answer) |
51 | SFNA (Start File Negative Answer) |
52 | EFPA (End File Positive Answer) |
53 | EFNA (End File Negative Answer) |
65 | AUCH (Authentication Challenge) |
67 | CDT (Set Credit) |
68 | DATA (Data Exchange Buffer) |
69 | EERP (End to End Response) |
70 | ESID (End Session) |
72 | SFID (Start File) |
73 | SSRM (Start Session Ready Message) |
74 | SECD (Security Change Direction) |
78 | NERP (Negative End Response) |
80 | RTR (Ready To Receive) |
82 | CD (Change Direction) |
83 | AURP (Authentication Response) |
84 | EFID (End File) |
88 | SSID (Start Session) |
The Data parameter contains the raw OFTP packet.