XferSetParam Method

Navigation:  Reference Guide > File Transfer >

XferSetParam Method

Previous pageReturn to chapter overviewNext page

Sets up file-transfer direction (upload or download) and file-transfer protocol type for a communication channel (direct serial connection or modem connection).

XferSetParam(short ChannelID, short Mode, short Protocol, VARIANT_BOOL *Result);

Parameters

ChannelID

    A channel ID (0-7) used to identify a communication channel.

Mode

  This parameters indicates file-transfer direction and it can be one of the following values.

Value

Comment

1

Upload file

2

Download file

Protocol

    This parameters indicates file-transfer protocol type and it can be one of the following values.

Value

Comment

0

XModem Checksum protocol

1

XModem CRC protocol

2

XModem 1K protocol

3

YModem protocol

4

YModem-G protocol

5

ZModem protocol

6

Kermit protocol

Result

    If the method succeeds, the value of variable pointed to by Result is VARIANT_TRUE, otherwise the value is VARIANT_FALSE.