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.

CommandIdCommandDescription
50SFPA (Start File Positive Answer)
51SFNA (Start File Negative Answer)
52EFPA (End File Positive Answer)
53EFNA (End File Negative Answer)
65AUCH (Authentication Challenge)
67CDT (Set Credit)
68DATA (Data Exchange Buffer)
69EERP (End to End Response)
70ESID (End Session)
72SFID (Start File)
73SSRM (Start Session Ready Message)
74SECD (Security Change Direction)
78NERP (Negative End Response)
80RTR (Ready To Receive)
82CD (Change Direction)
83AURP (Authentication Response)
84EFID (End File)
88SSID (Start Session)

The Data parameter contains the raw OFTP packet.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]