Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Programing a modem

Posted on 1998-09-18
4
Medium Priority
?
254 Views
Last Modified: 2012-05-04
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
Comment
Question by:lucinext
[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
  • 4
4 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 200 total points
ID: 1173096
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
 
LVL 11

Expert Comment

by:alexo
ID: 1173097
Oh, the error codderction algorithm is usually V.42bis but it is handled transparently by the modem.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1173098
Oops, sorry.  V.42bis (or MNP5) is the compression.  V.42 is the error correction.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1173099
And the autograder hits again!  Thank you so much for your consideration.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

721 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