Solved

Transfering files via modem connection using AsyncPro

Posted on 2004-09-10
3
229 Views
Last Modified: 2010-05-18
Hi,

Can anybody help me with some sample code to transfer file via modem connection using AsyncPro (TApdTapiDevice, TApdProtocol)

Thanks,
Partha
0
Comment
Question by:perthg
  • 2
3 Comments
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12031378
I'm assuming you now how to drop a comport, protocol and tapi components on a form, and make all the propert connections.

Once you've done that...you hook the Tapi up to start transmitting at the right moment:

procedure TForm1.ApdTapiDevice1TapiPortOpen(Sender: TObject);
begin
  ApdProtocol1.StartTransmit;
end;


This button click would get Tapi dialing out, then start the protocol when connected:

procedure TForm1.Button1Click(Sender: TObject);
begin
  ApdTapiDevice1.Dial('212-123-3232');
end;

0
 

Author Comment

by:perthg
ID: 12032313
Thanks, but How do I transfer a file?
0
 
LVL 7

Accepted Solution

by:
LRHGuy earned 250 total points
ID: 12032461
If you drop the comport, tapi, and protocol components on the form, then set the properties.

The protocal property has two settings of interest:

  filename    (the file to send)
  protocol    (the protocol to use...like zmodem)

zmodem is a good idea, depending on where your connecting to, since it can 'autostart' on the other end, if supported.

Calling the StartTransmit method will send the file.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now