It is required that Windows 2000 have Service Pack 4 (SP4) installed on the system for both developers and end-users. For Windows XP, Service Pack 2 (SP2) must be installed.
Operating System Minimum Version Windows 2000 5.00.2195 Windows XP 5.10.2600 Windows 2003 Server 5.20.3790 Windows Vista 6.00.6000
Version 3.0 includes version 2.0 of the Common Language Runtime (CLR) and is primarily a collection of extension classes that were formally called WinFX. Because the CLR was not changed with this version, the version 2.0 assemblies should be used with version 3.0 of the framework.
Framework Minimum Version Version 1.1 1.1.4322 Version 2.0 2.0.50727 Version 3.0 2.0.50727
SocketWrench1.Secure = True
nError = SocketWrench1.Connect(strRemoteHost, nRemotePort)
If nError Then
MsgBox "Unable to establish a secure connection"
EndIf
With the library, your application will need to specify
an option that requests that a secure connection be established with the server. For
example:
SOCKET sockClient;
LPCTSTR pszRemoteHost = _T("www.catalyst.com");
UINT nRemotePort = 443;
UINT nTimeout = 120;
if (InetInitialize(CSWSOCK4_LICENSE_KEY, 0L) == 0)
{
// Unable to initialize SocketWrench library
return;
}
sockClient = InetConnectEx(pszRemoteHost,
nRemotePort,
INET_PROTOCOL_TCP,
nTimeout,
INET_OPTION_SECURE,
0, 0, NULL);
if (sockClient == INVALID_SOCKET)
{
int nError = InetGetLastError();
if (nError == ST_ERROR_SECURITY_NOT_INITIALIZED)
{
// Unable to initialize security interface
return;
}
else
{
// Unable to establish a connection
return;
}
}
If the library is not initialized with a runtime license key, or the security libraries
could not be loaded, the connection attempt will fail with an error. At this point,
your application could either display a warning to the user or optionally establish a
standard, non-secure connection to the server.Dim objSocket As New SocketWrench
The other approach is to use the CreateObject method:Dim objSocket As Object
Dim strLicenseKey As String
Set objSocket = CreateObject("SocketTools.SocketWrench.5")
objSocket.Initialize strLicenseKey
Note that the strLicenseKey value must be obtained from the cswskey5.bas module
that was created in the \Include folder where the product was installed. The Initialize
method must be called explicitly when using the CreateObject function;
otherwise a licensing error will occur when redistributing the application.
ActivePatch
Information about ActivePatch, the file patching toolkit.
File Transfer Control
Information about the Catalyst File Transfer control.
Internet Mail Control
Information about the Catalyst Internet Mail control.
SocketTools Editions
Information about the SocketTools suite of products.
SocketTools Subscription
Information about the SocketTools subscription plan.
SocketWrench Editions
Information about the SocketWrench components.
Product Licensing
Product licensing information for customers and evaluators.
Technical Support
Technical support options and policies for developers.