Kole
Kole

Reputation: 21

Reading data from ethernet port using Qt

I am trying to open an ethernet port to receive data using Qt libraries. Previously I was using libpcap library to do this work. pcap_open_live("eth0", ... ) to open the ethernet port and pcap_loop() to collect the data.

Are there any similar functions in Qt libraries which does this work? If yes, can anyone explain how to use them.

Thank you

Upvotes: 0

Views: 847

Answers (1)

Gabe Weiss
Gabe Weiss

Reputation: 3342

Take a look at QNetworkAccessManager. It works on sockets instead of ports directly, but it should be able to do what you need.

Upvotes: 1

Related Questions