PITrail Event
Fired when any protocol level communication occurs.
Syntax
ANSI (Cross Platform) virtual int FirePITrail(OFTPServerPITrailEventParams *e);
typedef struct {
int ConnectionId;
int Direction;
const char *Data; int lenData;
int CommandId;
const char *CommandDescription; int reserved; } OFTPServerPITrailEventParams; Unicode (Windows) virtual INT FirePITrail(OFTPServerPITrailEventParams *e);
typedef struct {
INT ConnectionId;
INT Direction;
LPCSTR Data; INT lenData;
INT CommandId;
LPCWSTR CommandDescription; INT reserved; } OFTPServerPITrailEventParams;
- (void)onPITrail:(int)connectionId :(int)direction :(NSData*)data :(int)commandId :(NSString*)commandDescription;
#define EID_OFTPSERVER_PITRAIL 10 virtual INT IPWORKSEDI_CALL FirePITrail(INT &iConnectionId, INT &iDirection, LPSTR &lpData, INT &lenData, INT &iCommandId, LPSTR &lpszCommandDescription);
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.