[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Network Device Informations
From: |
Prochnow, Christian |
Subject: |
Re: Network Device Informations |
Date: |
Sat, 16 Nov 2002 15:14:56 +0100 |
User-agent: |
KMail/1.4.3 |
Here is a little demo program:
----- cut -----
#include <cc++/network.h>
#include <iostream>
int main(int argc, char* argv[])
{
std::vector<ost::NetworkDeviceInfo> devs;
if(!ost::enumNetworkDevices(devs))
{
std::cerr << "Could not get list of network devices!" << std::endl;
return -1;
}
std::cout << "Available network devices:" << std::endl;
std::vector<ost::NetworkDeviceInfo>::const_iterator i = devs.begin();
while(i != devs.end())
{
std::cout << (*i).name() << " address: " << (*i).address()
<< ", brdcast: " << (*i).broadcast()
<< ", netmask: " << (*i).netmask()
<< ", mtu: " << (*i).mtu() << std::endl;
++i;
}
}
---- cut ----
Regards,
Christian Prochnow
Am Samstag 16 November 2002 14:58 schrieb Federico Montesino Pouzols:
> Ok, it is in CVS for 1.0.7. I will also add a demo for it in a
> while.
>
> On Fri, Nov 15, 2002 at 02:36:50AM -0500, David Sugar wrote:
> > I think it would be okay to also add to 1.0...
>
> _______________________________________________
> Bug-commoncpp mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-commoncpp
- Network Device Informations, Prochnow, Christian, 2002/11/13
- Re: Network Device Informations, Federico Montesino Pouzols, 2002/11/13
- Re: Network Device Informations, David Sugar, 2002/11/13
- Re: Network Device Informations, Prochnow, Christian, 2002/11/14
- Re: Network Device Informations, David Sugar, 2002/11/14
- Re: Network Device Informations, Federico Montesino Pouzols, 2002/11/14
- Re: Network Device Informations, David Sugar, 2002/11/15
- Re: Network Device Informations, Federico Montesino Pouzols, 2002/11/16
- Re: Network Device Informations,
Prochnow, Christian <=
- Re: Network Device Informations, Federico Montesino Pouzols, 2002/11/16