ChangeDirection Method
Sends a Change Direction (CD) command.
Syntax
ANSI (Cross Platform) int ChangeDirection(int iConnectionId); Unicode (Windows) INT ChangeDirection(INT iConnectionId);
- (void)changeDirection:(int)connectionId;
#define MID_OFTPSERVER_CHANGEDIRECTION 2 IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_OFTPServer_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method sends a Change Direction (CD) command to the client when called. In normal operation this should
not be used. This should only be used if a condition arises where you must manually change the speaker when
communicating with the client. For instance:
component.ChangeDirection(MyConnectionId);
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)