Communication

Please help me write a programme to send and recieve data by C++ through the modem from one computer having c++ to another computer having c++.The prog. encodes the data to be encoded and sends it through a ordinary tel. line and the other computer will have another prog which will decode the data and store it.
manjitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
#include <stdio.h>
main(){
        int c;      
        while( (c=getchar()) != EOF ){ putchar(c); }
}
0
manjitAuthor Commented:
Edited text of question
0
manjitAuthor Commented:
Adjusted points to 45
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

manjitAuthor Commented:
Adjusted points to 50
0
manjitAuthor Commented:
Edited text of question
0
manjitAuthor Commented:
Edited text of question
0
yonatCommented:
Please be more specific. How are the computers connected? Using a TCP/IP network? Using RS232? Something else? What is the OS?
0
manjitAuthor Commented:
Edited text of question
0
yonatCommented:
Search for source for zmodem or kermit. For example: http://pauillac.inria.fr/~doligez/zmodem/ and http://www.columbia.edu/kermit/ .
These are protocols for data transfer over modem lines.
0
manjitAuthor Commented:
Adjusted points to 80
0
yingchunliCommented:
For sending data:
  1: using CreateFile("COM1"or "COM2" , .....) to get a handle .
  2: call GetCommState() and SetCommState() to set parameters.
  3: write encodeFunction(text_str, ...) to encode text_str.
  4: call WriteFile( handle, text_str, ......) to send encoded data to the connected serial port.

For receiving data:
   finish the similar steps.
0
manjitAuthor Commented:
Please write the programme for me please.
0
manjitAuthor Commented:
Adjusted points to 170
0
manjitAuthor Commented:
Please write the prog. for me . I need it urgently.Thank You
 
0
yonatCommented:
Just use kermit or zmodem - no need to write anything.
0
manjitAuthor Commented:
IT is not the question for transferring files. I have to do a project by writing a prog. in c++ to send and recieve files. I
hope U understand and will please write the prog.
      ThanX A Lot
0
manjitAuthor Commented:
Adjusted points to 205
0
cchamanCommented:
Send me your email address... shall mail you a program with
source code.

Keep in mind that the program has a copy-right so use it for
a legal purpore.

AND GET THOSE POINTS READY !!!

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
manjitAuthor Commented:
here's my E-mail
      manjitr@yahoo.com
       ThanX A Lot
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.