~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/discovery/CBroadcastServer.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-29 22:01:55 UTC
  • Revision ID: admin@quickmediasolutions.com-20120629220155-ogwrn9fxxve9wyw1
Moved a TON of the broadcast and discovery code around, creating separate classes for each and partially implementing their use in the first start wizard.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    m_timer.stop();
40
40
 
41
41
    /* Attempt to find the broadcast address on the default address. */
42
 
    if(!Network::FindIPv4Address(Network::GetCurrentInterface(), Network::BroadcastAddress, &m_broadcast_address))
 
42
    if(!Network::FindIPv4Address(Network::GetCurrentInterface(), NULL, &m_broadcast_address))
43
43
    {
44
44
        emit Error(tr("Unable to find an IPv4 broadcast address for the current interface."));
45
45
        return;