ReadyToSend Event

Fired when the class is ready to send data.

Syntax

ANSI (Cross Platform)
virtual int FireReadyToSend(OFTPServerReadyToSendEventParams *e);
typedef struct {
int ConnectionId; int reserved; } OFTPServerReadyToSendEventParams; Unicode (Windows) virtual INT FireReadyToSend(OFTPServerReadyToSendEventParams *e);
typedef struct {
INT ConnectionId; INT reserved; } OFTPServerReadyToSendEventParams;
- (void)onReadyToSend:(int)connectionId;
#define EID_OFTPSERVER_READYTOSEND 11

virtual INT IPWORKSEDI_CALL FireReadyToSend(INT &iConnectionId);

Remarks

The ReadyToSend event indicates that the connected client is in a state where it can accept files sent from the server. When a client connects initially it will not be ready to receive files. After the client sends files (if any) to the server it will pass control to the server. At that time the ReadyToSend event will fire. In addition the OFTPConnectionReadyToSend property will be set to true for the connection.

After this event fires SendFile can be called to send files to the connected client.

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