~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/discovery/CBasicBroadcaster.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-29 23:22:49 UTC
  • Revision ID: admin@quickmediasolutions.com-20120629232249-17eu8xp4ta0ooqyp
Finished implementing broadcast discovery page in wizard.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    /* Attempt to find an IPv4 broadcast and netmask address on the interface. */
48
48
    if(!Network::FindIPv4Address(interface, &m_broadcast_address, &m_netmask_address))
49
49
    {
50
 
        emit Error(tr("Unable to find an IPv4 broadcast and netmask address for the current interface."));
 
50
        emit Error(tr("Unable to find an IPv4 broadcast and netmask address for the specified network interface."));
51
51
        return;
52
52
    }
53
53
 
 
54
    /* Grab the name of the interface. */
 
55
    m_name = interface.name();
 
56
 
54
57
    /* Start the timer and send out an initial ping. */
55
58
    m_timer.setInterval(Settings::Get("Network/BroadcastInterval").toInt());
56
59
    m_timer.start();