Networking Tools: Network Communication Classes (net library)
#include <rw/toolpro/winsock.h>
net, tls (and possibly std)
Performs initialization for the socket API on Windows platforms. Initialization is required before your application can make requests of the Winsock API and deregistration is required for applications that no longer need Winsock services.
Note that we encourage all users to include this class in their code. While using this class does not affect the behavior of programs that run on UNIX, it does make them portable to Windows environments.
NOTE: If you use Winsock.dll in a DLL, either directly or indirectly, you must initialize it. The fastest way to do this may be to create an instance of RWWinSockInfo in DllMain().
RWWinSockInfo();
Initializes the underlying socket API. If the Winsock DLL has already been initialized by this application, then the constructor does nothing. An exception of type RWNetWinsockInitErr is thrown if the initialization fails. The blocking hook is not changed.
RWWinSockInfo(FARPROC blockingHook);
Initializes the Winsock DLL and installs the blocking hook indicated. The previous blocking hook is restored when the RWWinSockInfo is destroyed.
~RWWinSockInfo();
Performs the termination tasks.
static FARPROC lookUpBlockingHook(BlockingHook);
Returns the actual blocking hook function pointer.
RWCString description() const;
Returns the vendor-supplied description of the Winsock DLL.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.