Ignore:
Timestamp:
Jan 25, 2011, 11:09:18 PM (11 years ago)
Author:
schwittmann
Message:

Improved external client:

  • added possibility to choose device
  • added verbose device information
  • added device name to identification
  • misc cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/ExternalClient/Network.cpp

    r2450 r2486  
    3030        out << buf;
    3131    }
    32     out << "@";
    33     out << sysconf( _SC_NPROCESSORS_ONLN );
    34     out << "cores";
    35     // todo: more
     32    else
     33    {
     34        out << "unkhost";
     35    }
     36    out << "/";
     37    const char* devicename = cryptool->getDeviceName().c_str();
     38
     39    const std::string whitespaces = " \t\r\n";
     40
     41    while(*devicename)
     42    {
     43        if(whitespaces.find(*devicename) == std::string::npos)
     44        {
     45            out << *devicename;
     46        }
     47        ++devicename;
     48    }
    3649    return out.str();
    3750}
Note: See TracChangeset for help on using the changeset viewer.