我有一个问题,客户端计算文件的校验和,然后通过套接字将其与文件一起发送到服务器。服务器重新计算文件的校验和并将其与传递的校验和进行比较。调试输出如下
Server calculated checksum: 53613E7F8AB289BDDC1EBF1E0929F1FD
<?xml version="1.0" encoding="utf-16"?>
<TestHistory>
<TestHistory>
<SerialNumber>13231312</SerialNumber>
<PrinterFamily>Tabletop</PrinterFamily>
<StartTime>1371515505</StartTime>
<EndTime>1371515510</EndTime>
<TestStation>PreCal</TestStation>
<TestResult>P</TestResult>
<FailureResult>
</FailureResult>
<NetworkDomainName>zgn</NetworkDomainName>
<TestPCName>01-93RZheng</TestPCName>
<TestSoftwareVersion>0.0.7</TestSoftwareVersion>
<TestSite>Jabil</TestSite>
<MAC_BT>00-G0-D0-86-CB-F7</MAC_BT>
<MAC_WiFi>00-S0-D0-26-BD-X7</MAC_WiFi>
<MAC_Wired>00-B0-D0-81-BB-L7</MAC_Wired>
<SKU>1rf3</SKU>
<WorkOrder>1313231</WorkOrder>
<Firmware_MLB>3.1321.bd2</Firmware_MLB>
<DateEntered />
<PrintheadMFGInfo>ee1</PrintheadMFGInfo>
<PrintheadSN>13-21</PrintheadSN>
</TestHistory>
</TestHistory>
.
Client calculated checksum: 0AFE9F429DE4C6E675297FA861C0CCA9
<?xml version="1.0" encoding="utf-16"?>
<TestHistory>
<TestHistory>
<SerialNumber>13231312</SerialNumber>
<PrinterFamily>Tabletop</PrinterFamily>
<StartTime>1371515505</StartTime>
<EndTime>1371515510</EndTime>
<TestStation>PreCal</TestStation>
<TestResult>P</TestResult>
<FailureResult>
</FailureResult>
<NetworkDomainName>zgn</NetworkDomainName>
<TestPCName>01-93RZheng</TestPCName>
<TestSoftwareVersion>0.0.7</TestSoftwareVersion>
<TestSite>Jabil</TestSite>
<MAC_BT>00-G0-D0-86-CB-F7</MAC_BT>
<MAC_WiFi>00-S0-D0-26-BD-X7</MAC_WiFi>
<MAC_Wired>00-B0-D0-81-BB-L7</MAC_Wired>
<SKU>1rf3</SKU>
<WorkOrder>1313231</WorkOrder>
<Firmware_MLB>3.1321.bd2</Firmware_MLB>
<DateEntered />
<PrintheadMFGInfo>ee1</PrintheadMFGInfo>
<PrintheadSN>13-21</PrintheadSN>
</TestHistory>
</TestHistory>
在输出的文件部分使用标准差异工具表明这两个文件没有差异,这使我相信编码或其他原因导致校验和不匹配。