~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/file/CFileServer.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:
34
34
 
35
35
    // Attempt to find the IPv4 address for the current network interface
36
36
    QHostAddress address;
37
 
    if(!Network::FindIPv4Address(Network::GetCurrentInterface(), Network::IPAddress, &address))
 
37
    if(!Network::FindIPv4Address(Network::GetCurrentInterface(), &address))
38
38
    {
39
39
        emit Error(tr("Unable to find an IPv4 address on the current network interface."));
40
40
        return;