Reputation:

How do I send and receive broadcast messages using QT 4.5 and Linux?

I'm new to QT programming. Could anyone explain how I can send broadcast messages given a network adapter and its IP address? I also don't know how to receive datagrams using QT. Could anyone please help?

Upvotes: 0

Views: 1815

Answers (1)

Mihai Limbășan
Mihai Limbășan

Reputation: 67756

You could conceivably take a look at the very simple BroadcastSender and BroadcastReceiver examples that come bundled with QT. You will find them in the examples/network directory of your QT source tree, more specifically in examples/network/broadcastreceiver and examples/network/broadcastsender or directly online at this URL: examples/network

Upvotes: 3

Related Questions