Changeset 1427
- Timestamp:
- 07/07/05 12:02:37 (4 years ago)
- Files:
-
- testing/cgcomm/cgcomm.vcproj (modified) (2 diffs)
- testing/cgcomm/sub_download.cpp (modified) (3 diffs)
- testing/cgcomm/sub_search.cpp (modified) (2 diffs)
- testing/cgcomm/subsysbase.cpp (modified) (1 diff)
- testing/cgcomm/tag.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
testing/cgcomm/cgcomm.vcproj
r1365 r1427 65 65 <Configuration 66 66 Name="Release|Win32" 67 OutputDirectory=" Release"67 OutputDirectory="..\..\Release\modules" 68 68 IntermediateDirectory="Release" 69 69 ConfigurationType="2" … … 71 71 <Tool 72 72 Name="VCCLCompilerTool" 73 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;CGCOMM_EXPORTS" 73 AdditionalIncludeDirectories="../../include;"C:\Boost\include\boost-1_32"" 74 PreprocessorDefinitions="WIN32;_CONSOLE;WINVER=0x400;_MT;_USRDLL;__MODULE__;HAVE_PCH" 74 75 RuntimeLibrary="0" 75 76 UsePrecompiledHeader="0" 76 77 WarningLevel="3" 77 Detect64BitPortabilityProblems="TRUE" 78 DebugInformationFormat="3"/> 78 DebugInformationFormat="0"/> 79 79 <Tool 80 80 Name="VCCustomBuildTool"/> 81 81 <Tool 82 82 Name="VCLinkerTool" 83 AdditionalDependencies="../../Debug/libhydranode.lib" 83 84 OutputFile="$(OutDir)/cgcomm.dll" 84 LinkIncremental="1" 85 GenerateDebugInformation="TRUE" 85 AdditionalLibraryDirectories="C:\Boost\lib" 86 86 SubSystem="2" 87 87 OptimizeReferences="2" testing/cgcomm/sub_download.cpp
r1399 r1427 59 59 Utils::putVal<uint8_t>(packet, OC_LIST); 60 60 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()); 62 62 sendPacket(packet.str()); 63 63 … … 79 79 tmp2 << f->getCompletedChunks(); 80 80 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()); 82 82 83 83 // finalize … … 85 85 Utils::putVal<uint16_t>(o, tmp.str().size()); 86 86 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()); 88 88 89 89 logDebug( testing/cgcomm/sub_search.cpp
r1398 r1427 112 112 tmpR << makeTag(TAG_FILESIZE, res->getSize()); 113 113 tmpR << makeTag(TAG_SRCCNT, res->getSources()); 114 putVal (tmp, tmpR.str(), tmpR.str().size());114 putVal<std::string>(tmp, tmpR.str(), tmpR.str().size()); 115 115 ++cnt; 116 116 } … … 118 118 putVal<uint8_t>(packet, OP_SEARCHRESULTS); 119 119 putVal<uint32_t>(packet, cnt); 120 putVal (packet, tmp.str(), tmp.str().size());120 putVal<std::string>(packet, tmp.str(), tmp.str().size()); 121 121 sendPacket(packet.str()); 122 122 m_lastResultCount = ptr->getResultCount(); testing/cgcomm/subsysbase.cpp
r1365 r1427 34 34 Utils::putVal<uint8_t>(tmp, m_subCode); 35 35 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()); 37 37 uint32_t ret = m_socket->write(tmp.str().data(), tmp.str().size()); 38 38 } testing/cgcomm/tag.h
r1412 r1427 45 45 Utils::putVal<uint8_t>(o, t.m_opcode); 46 46 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()); 48 48 return o; 49 49 }
