Delphi and Indy

Discussion in 'OT Technology' started by celendin, Mar 20, 2007.

  1. celendin

    celendin New Member

    Joined:
    Feb 26, 2005
    Messages:
    697
    Likes Received:
    0
    Location:
    Melbourne Australia
    Hi, I have developed a simple peer to peer application using Indy and Delphi.

    It seems however the sending user can’t stop a file transfer to another user during transition the file. The first user can’t break off the connection from his side once a file transfer has started. It can just initiate a file transfer but once it has started to the client, the client is busy during transition of the file and the sending user can't send another signal to break the transfer.
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    I have no idea idea about how to program in Delphi, but in the real world if you have a single threaded app, then I'm guessing you have a loop to write the local file to the stream, piece by piece... If this is the case, then at the beginning of each loop iteration, you should check a static status to cancel the operation. You could then use a button on a form to set said status.
     

Share This Page