Delphi and Indy

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

  1. celendin

    celendin New Member

    Feb 26, 2005
    Likes Received:
    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 custom title

    Sep 20, 2001
    Likes Received:
    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