Changeset 222 for PinConnection
- Timestamp:
- Apr 4, 2011, 12:24:18 PM (14 years ago)
- Location:
- PinConnection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
PinConnection/UCommProtocol.pas
r171 r222 212 212 SequenceNumber := ReadVarUInt(1); 213 213 if TestIndex(2) then 214 ReadVar IntegerArray(2, CommandIndex);214 ReadVarUIntArray(2, CommandIndex); 215 215 if TestIndex(3) then 216 216 ReadVarIndexedBlock(3, RequestData); … … 287 287 WriteVarUInt(0, Integer(mtRequest)); 288 288 WriteVarUInt(1, SequenceNumber); 289 WriteVar IntegerArray(2, CommandIndex);289 WriteVarUIntArray(2, CommandIndex); 290 290 if Assigned(RequestParameters) then 291 291 WriteVarIndexedBlock(3, RequestParameters); -
PinConnection/UCommThread.pas
r171 r222 120 120 try 121 121 StreamHelper := TStreamHelper.Create(Stream); 122 with Parent do repeat 123 if FDataAvailable.WaitFor(1 * OneMillisecond) = wrSignaled then try 122 with Parent do 123 repeat 124 if FDataAvailable.WaitFor(1 * OneMillisecond) = wrSignaled then begin 125 try 124 126 FInputBufferLock.Acquire; 125 127 Stream.Size := 0; … … 130 132 FInputBufferLock.Release; 131 133 end; 132 Yield; 133 until Terminated; 134 134 end else Yield; 135 until Terminated; 135 136 finally 136 137 StreamHelper.Free;
Note:
See TracChangeset
for help on using the changeset viewer.