Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1276
  • Last Modified:

How can I connect two computers using modem and after that sending variables!!!!!!!!!!!

How can I connect two computers(the first one two
be on Auto answering mode and the second dials)
like when loginng in internet with modem!!!!!!!
0
NIKITA
Asked:
NIKITA
  • 3
  • 2
  • 2
  • +1
1 Solution
 
kashif063098Commented:
what kind of operating system you have ,win 95,win nt ?

For Window NT :
You can do this using Dialup networking.
on the Host machine RAS Service should be running and a user account on the host machine should have rights to use RAS

 
0
 
NIKITAAuthor Commented:
I want to connect two computers with modem(but with a delphi program)...
0
 
saar071697Commented:
you are cant do something like that in delphi.
and i think the jimbob will say you the same.
if the other computers are using netware maybe there is some way.

Daniel,
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!

 
saar071697Commented:
sorry about it:

you are cant do something like that in delphi.
and i think that jimbob will say you the same.
if the other computers are using netware maybe there is some way.

Daniel,
0
 
lortegaCommented:
You need to know to much about modem comunication...stuff like modem command, comm APIs, security issues (if Windows NT), overlapped issues (Windows NT) and posible multithread system...

some Win32 APIs to access the comm port are:
   CreateFile
   WriteFile
   ReadFile
   CloseHandle
   SetupComm
   GetCommState
   SetCommState
   BuildCommDCB

To create to application that comunicate over modems you need that the receiving programm stay on memory (locking the comm port) at the moment of receiving the call, the calling programm need to send some special character to tell the modem that made the call...

some command characters are:
    AT  
   ATDT  (to dial in tone mode)
   ATDP (to dial in pulse mode)
   +++    (to hangup the phone)
   ,         (to sleep modem during 2 second)

and example is...    ATDT,1564845      this sample just dial the phone number 1564845

be carefull with modem command because there are some standard but some modem have its own commands... so read your modem documentation...


if you want to lose your dreams in an space of MS APIs... try TAPI (Telephone API)... but I do not recomend you that because that is another non-standard MS calls...

don't give up, but there are a world of comm issues...

att
lortega
0
 
lortegaCommented:
saar thas was a chrismas gift...     ;-)
0
 
NIKITAAuthor Commented:
I know how to dial a number with createfile and writefile
but I can't connect them!
0
 
lortegaCommented:
The dial is easy, the receiving is not so ease, but the modem connection is automatic... then you just need to turn in command mode... and BINGO everi thing that you send should be received in the other computer...

be carefull with the way that you call CreateFile, in read and write mode and be carefull to of the overlapped issues tha will affec your system in NT environment...

good luck...
luis
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now