Changeset 1427

Show
Ignore:
Timestamp:
07/07/05 12:02:37 (4 years ago)
Author:
madcat
Message:

Updated to new Utils::putVal/getVal mechanism.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • testing/cgcomm/cgcomm.vcproj

    r1365 r1427  
    6565                <Configuration 
    6666                        Name="Release|Win32" 
    67                         OutputDirectory="Release
     67                        OutputDirectory="..\..\Release\modules
    6868                        IntermediateDirectory="Release" 
    6969                        ConfigurationType="2" 
     
    7171                        <Tool 
    7272                                Name="VCCLCompilerTool" 
    73                                 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;CGCOMM_EXPORTS" 
     73                                AdditionalIncludeDirectories="../../include;&quot;C:\Boost\include\boost-1_32&quot;" 
     74                                PreprocessorDefinitions="WIN32;_CONSOLE;WINVER=0x400;_MT;_USRDLL;__MODULE__;HAVE_PCH" 
    7475                                RuntimeLibrary="0" 
    7576                                UsePrecompiledHeader="0" 
    7677                                WarningLevel="3" 
    77                                 Detect64BitPortabilityProblems="TRUE" 
    78                                 DebugInformationFormat="3"/> 
     78                                DebugInformationFormat="0"/> 
    7979                        <Tool 
    8080                                Name="VCCustomBuildTool"/> 
    8181                        <Tool 
    8282                                Name="VCLinkerTool" 
     83                                AdditionalDependencies="../../Debug/libhydranode.lib" 
    8384                                OutputFile="$(OutDir)/cgcomm.dll" 
    84                                 LinkIncremental="1" 
    85                                 GenerateDebugInformation="TRUE" 
     85                                AdditionalLibraryDirectories="C:\Boost\lib" 
    8686                                SubSystem="2" 
    8787                                OptimizeReferences="2" 
  • testing/cgcomm/sub_download.cpp

    r1399 r1427  
    5959        Utils::putVal<uint8_t>(packet, OC_LIST); 
    6060        Utils::putVal<uint32_t>(packet, cnt); 
    61         Utils::putVal(packet, tmp.str(), tmp.str().size()); 
     61        Utils::putVal<std::string>(packet, tmp.str(), tmp.str().size()); 
    6262        sendPacket(packet.str()); 
    6363 
     
    7979        tmp2 << f->getCompletedChunks(); 
    8080        Utils::putVal<uint16_t>(tmp, tmp2.str().size()); 
    81         Utils::putVal(tmp, tmp2.str(), tmp2.str().size()); 
     81        Utils::putVal<std::string>(tmp, tmp2.str(), tmp2.str().size()); 
    8282 
    8383        // finalize 
     
    8585        Utils::putVal<uint16_t>(o, tmp.str().size()); 
    8686        Utils::putVal<uint16_t>(o, 7); // tagcount 
    87         Utils::putVal(o, tmp.str(), tmp.str().size()); 
     87        Utils::putVal<std::string>(o, tmp.str(), tmp.str().size()); 
    8888 
    8989        logDebug( 
  • testing/cgcomm/sub_search.cpp

    r1398 r1427  
    112112                tmpR << makeTag(TAG_FILESIZE, res->getSize()); 
    113113                tmpR << makeTag(TAG_SRCCNT, res->getSources()); 
    114                 putVal(tmp, tmpR.str(), tmpR.str().size()); 
     114                putVal<std::string>(tmp, tmpR.str(), tmpR.str().size()); 
    115115                ++cnt; 
    116116        } 
     
    118118        putVal<uint8_t>(packet, OP_SEARCHRESULTS); 
    119119        putVal<uint32_t>(packet, cnt); 
    120         putVal(packet, tmp.str(), tmp.str().size()); 
     120        putVal<std::string>(packet, tmp.str(), tmp.str().size()); 
    121121        sendPacket(packet.str()); 
    122122        m_lastResultCount = ptr->getResultCount(); 
  • testing/cgcomm/subsysbase.cpp

    r1365 r1427  
    3434        Utils::putVal<uint8_t>(tmp, m_subCode); 
    3535        Utils::putVal<uint16_t>(tmp, data.size()); // packet size 
    36         Utils::putVal(tmp, data.data(), data.size()); 
     36        Utils::putVal<std::string>(tmp, data.data(), data.size()); 
    3737        uint32_t ret = m_socket->write(tmp.str().data(), tmp.str().size()); 
    3838} 
  • testing/cgcomm/tag.h

    r1412 r1427  
    4545        Utils::putVal<uint8_t>(o, t.m_opcode); 
    4646        Utils::putVal<uint16_t>(o, t.m_data.size()); 
    47         Utils::putVal(o, t.m_data.data(), t.m_data.size()); 
     47        Utils::putVal<std::string>(o, t.m_data.data(), t.m_data.size()); 
    4848        return o; 
    4949}