Changeset 222 for PinConnection


Ignore:
Timestamp:
Apr 4, 2011, 12:24:18 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Jednotka UURI pro práci s textovým umístěním souborů a složek.
Location:
PinConnection
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommProtocol.pas

    r171 r222  
    212212        SequenceNumber := ReadVarUInt(1);
    213213      if TestIndex(2) then
    214         ReadVarIntegerArray(2, CommandIndex);
     214        ReadVarUIntArray(2, CommandIndex);
    215215      if TestIndex(3) then
    216216        ReadVarIndexedBlock(3, RequestData);
     
    287287          WriteVarUInt(0, Integer(mtRequest));
    288288          WriteVarUInt(1, SequenceNumber);
    289           WriteVarIntegerArray(2, CommandIndex);
     289          WriteVarUIntArray(2, CommandIndex);
    290290          if Assigned(RequestParameters) then
    291291            WriteVarIndexedBlock(3, RequestParameters);
  • PinConnection/UCommThread.pas

    r171 r222  
    120120  try
    121121    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
    124126        FInputBufferLock.Acquire;
    125127        Stream.Size := 0;
     
    130132        FInputBufferLock.Release;
    131133      end;
    132       Yield;
    133   until Terminated;
    134 
     134      end else Yield;
     135    until Terminated;
    135136  finally
    136137    StreamHelper.Free;
Note: See TracChangeset for help on using the changeset viewer.