[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Transfering files via modem connection using AsyncPro

Posted on 2004-09-10
3
Medium Priority
?
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 750 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

650 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