|
Summary
Allows the user to specify the SOCKS version.
Description
The FwSocksVer property is used specify the version of the SOCKS server. This property must be set before establishing a connection via a firewall (by calling the FwConnect method or
setting the Action property to ACTION_FW_CONNECT)
This property can have any one or a combination of the following values.
| Value |
Meaning |
| FW_VERSION5 |
The SOCKS version is 5. |
| FW_VERSION4 |
The SOCKS version is 4 |
If the firewall server version is unknown then the application can specify both FW_VERSION5 and FW_VERSION4. The Distinct FTP ActiveX control will automatically detect the firewall server version and
make the appropriate connection.
This property can be set at design time or at run time before a connection is established by calling the FwConnect method or setting the Action property to ACTION_FW_CONNECT.
Example
Ftp.FwAddrType = FW_ADDR_DNS Ftp.FwAuthMethods = "2" Ftp.FwUsername = "joe" Ftp.FwPassword = "distinct" Ftp.FwSocksVer =
FW_VERSION5
Result = Ftp.FwConnect ("sparky.distinct.com", "1080", "speedy.distinct.com", "santa", "north pole", """")
If Result = False Then
MsgBox "Unable to connect to server via a firewall", 64, "Sample Program" End If
|