INT GetChannelMode( |
|
INT nChannel |
|
); |
The GetChannelMode method returns the mode of the specified
communications channel.
Parameters
- nChannel
- An integer value which specifies which channel to return
information for. It may be one of the following values:
Constant |
Description |
FTP_CHANNEL_COMMAND |
Return information about the command channel. This is the
communication channel used to send commands to the server and
receive command result and status information from the
server. |
FTP_CHANNEL_DATA |
Return information about the data channel. This is the
communication channel used to send or receive data during a
file transfer. |
Return Value
If the method succeeds, the return value is the mode for the
specified channel. If the method fails, it will return FTP_ERROR. To
get extended error information, call GetLastError.
Remarks
The GetChannelMode method returns a integer which may be
one of the following values:
Constant |
Description |
FTP_CHANNEL_CLEAR |
The channel is not encrypted. This is the default mode for
both channels when a standard, non-secure connection is
established with the server. |
FTP_CHANNEL_SECURE |
The channel is encrypted. This is the default mode for both
channels when a secure connection is established with the
server. |
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftpv10.lib
See Also
SetChannelMode
|