Solved

How to Programm PCAnywhere-Like...

Posted on 2000-03-18
8
267 Views
Last Modified: 2010-04-04
     Suppose that, which what I really want to , I want to gain more experience  on delphi programming. What I want is to programm that can purform some tasks like PCAnywhere. The main point is that I want to create my own program that can  monitor incomming call and auto-answer such call And to perform files transferring through a wire. How can I accomplish such a task? I just have a rasapi32.pas , which is a interface unit to rasapi32.dll that can perform remote dialing with specified user name and password, on the other hand, client side. How can I create program to be server side that can automatically accept incoming call and authenticate such call to that programm. Moreover, If  a connection can be established. How can I transfer file through a wire. I need your suggestion that can guide me through the rest of these tasks or to any website the published fully documented programm like this. I want to know it clearly. Pleaseee give me a hand, and I'll give you 200 points if you answer me impressively.
0
Comment
Question by:Delphi_Expert
8 Comments
 
LVL 1

Expert Comment

by:darkloser
ID: 2632143
Win9X have a dialup server in Plus pack u can use it to answer of calls.
If u have a ppp connection you can use ftp server/client www server or some to get/put files. More info about it i can find on fpiete www page :)
best regards
0
 

Accepted Solution

by:
Portal earned 200 total points
ID: 2632661
For Modem connection and answering have a look at a TAPI component like:
http://www.pf.lv/Delphi

To make a call:
tapicom.phoneNumber := '1 2345 6789'
tapicom.makeCall

To answer a call:
tapicom.waitForCall

The component has writeLargeBlock and readLargeBlock methods which allow you to transfer files, messages, screen captures etc.
For example to send a file:
buffer : array[0..bufferSize] of byte;
ffile : TFileStream;
ffile := TFileStream.create(fmOpenRead,'Filename here');

repeat
   r := ffile.read(buffer,bufferSize);
   tapicom.writeLargeBlock(buffer,r);
until r <> bufferSize;

To receive the file do a similar thing with readLargeBlock.

My suggestion is to practice transfers between 2 computers using WSocket from fpiete and when your ready add code to transfer via TAPI and probably a more professional component suite like Async Pro from Turbo Power.

You have got a lot of work ahead of you. For example screen capturing, compression, speed considerations etc. If you want to have a look at the _source code_ for remote control software have a look at Virtual Network Computing at:

http://www.uk.research.att.com/vnc/

Good Luck!
0
 

Expert Comment

by:HamidHossain
ID: 2632739
Lestning ...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:yk030299
ID: 2634661
listen
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2639769
See on torry.ru page
nblib.zip for 16 bit  and nblib32.zip i think can help you :)

regards
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2639776
ops sorry wrong window :)
0
 

Author Comment

by:Delphi_Expert
ID: 2650142
Thank you very much indeed. You help me through my long last problems. I now have gain more experience on delphi programming. Hope anyone interested in this result get this too.
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2653402
do u write a Dialup server :)
I search sources of dialup server.
Thanks in advance
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 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