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: 258
  • Last Modified:

Programing a modem

How can I program a modem for file transmision and other data (name of directories, changing directories and so on) in Visual C 5++?
What kind of error corection algorithm is used?
0
lucinext
Asked:
lucinext
  • 4
1 Solution
 
alexoCommented:
You have two possible solutions.

1) Write a Winsock program.  This uses TCP/IP for the transport but can be transparently encapsulated by a serial protocol (PPP) using the dial-up network.

2) Use the serial functions:  Call CreateFile() with a "COMx" argument (x = number of serail port) to open the port, ReadFile() and WriteFile() to receive/send data, etc.  To modify the port and communications parameters use SetCommState(), BuildCommDCB(), SetCommConfig(), etc.  To monitor communication events use SetCommMask() and WaitCommEvent().  Search your online help for "Using the Communications Functions" for some sample code and see the COMM sample application that comes on your C++ CD.
0
 
alexoCommented:
Oh, the error codderction algorithm is usually V.42bis but it is handled transparently by the modem.
0
 
alexoCommented:
Oops, sorry.  V.42bis (or MNP5) is the compression.  V.42 is the error correction.
0
 
alexoCommented:
And the autograder hits again!  Thank you so much for your consideration.
0

Featured Post

Industry Leaders: 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!

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now