Solved

Programing a modem

Posted on 1998-09-18
4
246 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
  • 4
4 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

896 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now