Back to product page
- Introduction
- Overview
- License agreement
- Classes
- Enumerations
- wodSFTPdll
- Create function
- Destroy function
- Methods
- Abort
- About
- AppendData
- AppendDataLen
- AppendFile
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- ExtendedCmd
- GetAttributes
- GetData
- GetDataAt
- GetDataToBuffer
- GetDataToBufferAt
- GetFile
- GetFileAt
- GetFiles
- ListAttributes
- ListDir
- ListNames
- LoadPrivateKey
- LoopFiles
- MakeDir
- PutData
- PutDataAt
- PutDataLen
- PutDataLenAt
- PutFile
- PutFileAt
- PutFiles
- RealPath
- RemoteClose
- RemoteOpen
- RemoteRead
- RemoteWrite
- RemoveDir
- Rename
- SetAttributes
- Properties
- Authentication
- Blocking
- BufferSize
- ClientName
- Compression
- Encryption
- EncryptionList
- ErrorText
- Extensions
- FIPS
- HMacList
- Hostname
- KeyExchangeList
- KeySignatureList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- MyHostname
- MyIP
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- ServerErrorCode
- ServerErrorText
- State
- StateText
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Callbacks
- How to get support
- Using callbacks
- Technical information
- Error list
ProxyType function
Specifies the type of proxy to use.
Type
A Long value. If successful, 0 is returned, otherwise error as specified hereSyntax
- C
long Sftp_GetProxyType(void *Sftp, ProxyTypes *pVal); long Sftp_SetProxyType(void *Sftp, ProxyTypes newVal);
The ProxyType(void *Sftp,ProxyTypes value) syntax has these parts:
The ProxyType(void *Sftp,ProxyTypes value) syntax has these parts:
void *Sftp | Handle of the created Sftp instance. |
ProxyTypes value | A ProxyTypes enumeration, as described in settings. Determines which proxy to use. |
Remarks
The settings for value are:
Constant | Value | Description |
---|---|---|
ProxyNone | 0 | Unknown reason. |
ProxySocks4 | 1 | Host not allowed to connect. |
ProxySocks5 | 2 | Protocol error. |
ProxyWEBStandard | 3 | Key exchange failed. |
ProxyRelay | 4 | Reserved. |
ProxySocks4a | 5 | Mac error. |
ProxyWEBNtlmAuth | 6 | Compression error. |
ProxyWEBIntegratedAuth | 8 | Protocol version not supported. |