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?

Improve company productivity with a Business Account.Sign Up

x
 
cchamanConnect With a Mentor Commented:
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
 
ozoCommented:
#include <stdio.h>
main(){
        int c;      
        while( (c=getchar()) != EOF ){ putchar(c); }
}
0
 
manjitAuthor Commented:
Edited text of question
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
manjitAuthor Commented:
Adjusted points to 45
0
 
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
 
manjitAuthor Commented:
here's my E-mail
      manjitr@yahoo.com
       ThanX A Lot
0
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.

All Courses

From novice to tech pro — start learning today.