|
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 when establishing a connection through a firewall server by calling the
FwConnect method. 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 Imap 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 method FwConnect or setting the Action to ACTION_FW_CONNECT.
Example
Imap.FwAddrType = FW_ADDR_IP4
Imap.SocksVer = FW_VERSION5
Result = Imap.FwConnect ("139.210.120.50", FwServer, 1080)
If (Result = IMAP_SUCCESS) Then
MessageBox "Successful connection", "IMAP sample application", 64
End If
|