The names of many classes and functions have changed from the network communication classes of Tools.h++ Professional. Although the old names are still supported, we recommend that you use the new names when coding your applications.
You can refuse support for the old names by defining the RW_DISABLE_DEPRECATED macro when compiling your applications. This macro is usually defined on the compile line or in a makefile. You can also define the macro in your code.
The deprecated function name address() is used in the following code. If you define the macro RW_DISABLE_DEPRECATED before the include, the file does not compile because the compiler does not know about the address() function.
#define RW_DISABLE_DEPRECATED #include <rw/network/RWInetAddr.h> int main(void) { RWInetAddr addr(0, RWInetHost::me()); // The following line does NOT compile if the macro // RW_DISABLE_DEPRECATED is defined before inclusion // of the inetaddr.h header file. It does compile if the // macro is not defined. unsigned long addr1 = addr.address(); // The following line ALWAYS compiles, whether // or not the RW_DISABLE_DEPRECATED macro is defined unsigned long addr2 = addr.getAddress(); return(0); }
NOTE -- See the Essential Networking Module User's Guide for complete information about compatibility with previous versions.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.