TransferMode Property

The transfer mode (ASCII or Binary). If the value is 0 (default), the initial server mode will be used.

Syntax

ANSI (Cross Platform)
int GetTransferMode();
int SetTransferMode(int iTransferMode); Unicode (Windows) INT GetTransferMode();
INT SetTransferMode(INT iTransferMode);

Possible Values

TM_DEFAULT(0), 
TM_ASCII(1),
TM_BINARY(2)
@property (nonatomic,readwrite,assign,getter=transferMode,setter=setTransferMode:) int transferMode;
- (int)transferMode;
- (void)setTransferMode:(int)newTransferMode;

Possible Values

TM_DEFAULT(0), 
TM_ASCII(1),
TM_BINARY(2)
#define PID_FTP_TRANSFERMODE 42

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_FTP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_FTP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

This property specifies the transfer mode, either ASCII or binary. The valid options for the TransferMode property are as follows:

tmDefault (0) The initial mode of the FTP server is taken. No change.
tmASCII (1) Files are transferred in ASCII mode (TYPE A).
tmBinary (2) Files are transferred in Binary mode (TYPE I).

Data Type

Integer

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