[Qt-interest] QUdpSocket datagram, how to get the whole package

Patric userqt at gmail.com
Sat Jun 6 23:50:07 CEST 2009


I see... pitty there is no easier solution embedded in Qt.
Thank you. :)

Patric


----- Original Message ----- 
From: "Alexander Lazic" <al at bursik.net>
To: "Patric" <userqt at gmail.com>
Cc: <qt-interest at trolltech.com>
Sent: Sunday, June 07, 2009 12:30 AM
Subject: Re: [Qt-interest] QUdpSocket datagram, how to get the whole package


> Hi Patric,
>
> On Sam 06.06.2009 17:35, Patric wrote:
>>Hello, I'm sending UDP datagrams using QUdpSocket. But now I need to get 
>>the MAC address of the device I'm querying. Does
>>anyone know how it can be done ? If I get all the bytes in the package, 
>>I'll be able to extract the MAC
>>address. But QUdpSocket is encapsulating only the UDP part as
>>viewable.
>
> it looks that this is no so easy.
>
> Maybe this helps.
>
> http://stackoverflow.com/questions/832295/how-to-retrieve-foreign-hosts-mac-address-in-c
>
> http://en.wikipedia.org/wiki/Address_Resolution_Protocol
>
> http://www.experts-exchange.com/Programming/Languages/C/Q_22801430.html
>
> http://adywicaksono.wordpress.com/2007/11/08/detecting-mac-address-using-c-application/
>
> http://www.linuxquestions.org/questions/programming-9/getting-mac-address-from-ethernet-packet-in-c-434241/?s=ae1fc5e15b2f5a83938ef4528dcc2c96
>
> BR
>
>
> Aleks
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus 
> signature database 4098 (20090522) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> 


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4098 (20090522) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






More information about the Qt-interest-old mailing list