

since Dec
08, 2002 [ Last Modification : 2004/07/09] --------------------------------- Here are programs for getting * info about network interfaces * within C++-program * on Windows 2000. The algorithm has been written by Alex Vinokur. Programming Language : C++. Any and all comments would be appreciated. Alex Vinokur ----------------------------------- alexvn@go.to http://up.to/alexvn http://go.to/alexv_math http://alexvn.freeservers.com/s1/getmac.html -----------------------------------
Content. |
==================================================== =================== 1. Algorithm =================== There are two programs for getting info about network interfaces within C++-program : * A program based on popen method * A program based on ioctl method Utility that uses popen-method enables to get MAC address. Utility that uses ioctl-method is C++-wrapper around Floyd Davidson's function http://groups.google.com/groups?selm=87ofbox7xn.fld%40barrow.com and enables to get info about various network interfaces. Utility based on ioctl-method must be compiled on UNIX-like operating system (for instance, CYGWIN, Linux). ==================================================== |
==========================================================================
============================= 2. Program Files ===========================
The algorithm contains the following files :
Note. Lore's Source Converter was used to convert source code to HTML
==================================================== |
==================================================== ==================== 3. Compiling ================== //######################################################### //---------------------- popen method --------------------- //------------------- System & Compiler ------------------ Windows 2000 MINGW GNU gcc/g++ version 3.2.0 //-------------------- Compiling : BEGIN ------------------ % make # executable file : mac_popen.exe //-------------------- Compiling : END -------------------- //---------------------- ioctl method --------------------- //------------------- System & Compiler ------------------ Windows 2000 CYGWIN_NT-5.0 GNU gcc/g++ version 2.95.3-5 //-------------------- Compiling : BEGIN ------------------ % make # executable file : mac_ioctl.exe //-------------------- Compiling : END -------------------- |
==================================================== ===================== 4. Running =================== //######################################################### //-------------------- Running : BEGIN -------------------- % mac_popen.exe See results in Log File % mac_ioctl.exe See results in Log File //-------------------- Running : END ---------------------- |
==================================================== ===================== 5. Download ================== //######################################################### http://alexvn.freeservers.com/s1/zip_dir/get_mac.zip http://home.barak-online.net/alexvn/s2/mac/getmac11.zip |