Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 19555, Source for Network Adapters Dataset

by James Yegerlehner Email: Anonymous


The Kamiak TkamNetworkAdapters component is a free dataset that provides information about the network adapters on machine on which it is run.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Kylix, Version 1.0  to 3.0 242 downloads
Copyright: Open Source or other


Size: 27,152 bytes
Updated on Thu, 13 Feb 2003 19:21:44 GMT
Originally uploaded on Thu, 13 Feb 2003 19:19:51 GMT
SHA1 Hash: B853EC9C21B3E82F1AB8C49374B483E2B16E9AD7
MD5 Hash: 77BC99D82FF688D1880D0EAC5725EBE1

    Explore the files in this upload

Description
Overview
--------
The Kamiak TkamNetworkAdapters component is a free dataset that provides information about the network adapters (AKA network interfaces) of the machine on which it is run.

Because TkamNetworkAdapters is a TDataset descendant it can be codelessly connected to the CLX data-aware GUI components.

Uses
-----
1. Using TkamNetworkAdapters you can codelessly display a list of the
available network interfaces and their attributes. Many internet-related apps need the ability to select from multiple network interfaces, dialup connections, and the loopback interface.

2. Obtain the a network adapter's hardware (MAC) address.

3. Creation of "adapter" datasets that allow arbitrary classes to be
connected to Borland's CLX data-aware GUI controls. TkamNetworkAdapters subclasses TkamCustomDataset which can easily be subclassed to connect instances of any class to the CLX data-aware components. The source of TkamNetworkAdapters in kamNetworkIFDataset.pas can be used as an example which you can follow in order to create datasets that connect your own classes
to GUI controls.

Installation and Quick Start
----------------------------
The following instructions were written for the binary component package. We have since switched to just supplying the source, so first untar like this:
tar -xvzf kamNWIsource.tar.gz

then open the component source dpk and compile.
----------------------------
1. Start a command line shell and change ("cd") to the Companion CD directory in which kamNetworkInterfaces.tar.gz resides, and copy it to the directory in which you wish it to reside. For example:

cp kamNetworkInterfaces.tar /home/

2. Unpack the archive:

tar -xvf kamNetworkInterfaces.tar

A new directory called "kamnwi" will be created.

3. From within the Kylix IDE, choose from the Kylix main menu "Component" | "Install Packages..." and click the "Add" button.

4. Navigate to the kamnwi directory ( in the example above, /home//kamnwi ) and select bplKamNetworkInterfaces.so.1.0.

5. A "Kamiak" tab will appear on the component palette.

6. Add kamnwi to the Kylix library path. To do this, choose "Tools" from the Kylix main menu, then "Environment Options", select the "Library" tab and append ":/home/
At this point you should be able to drop a TkamNetworkAdapters on a form or data module and use it. A demonstration application is provided in kamnwi/demo. To open and run it do the following:

7. From the Kylix main menu choose File | Open Project, and select
kamnwi/demo/kamNetworkInterfaces.dpr.

8. The demo's form will appear with live data in the grid. The network adapters installed on your machine should appear listed in the grid.

9. You can run the application by selecting "Run" from the main menu.

Instructions for General Use
=========================================================
TkamNetworkAdapters is a TDataset descendent, so it can be used the same way any TDataset descendent is used with the CLX data-aware GUI controls. Here is the step-by-step:

1. Drop a TkamNetworkAdapters component on a your form.
2. Drop a TDataSource and TDBGrid ( you can use any number of data-aware compents ) on the form.
3. Set the datasource property of DBGrid1 to datasource1.
4. Set the dataset property of Datasource1 to kamNetworkAdapters1.
5. Set the active property of kamNetworkAdapters1 to true.

The network adapters on the current machine will appear in the grid.

License
--------
Permission is hereby granted, free of charge, to any person obtaining a copy of this compiled software and associated documentation files (hereinafter referred to as "the software" ) to distribute without restriction the software and derivative works produced by linking it to other software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, see http://www.kamiak.com/nwi.html

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03