We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Communication

manjit
manjit asked
on
Medium Priority
261 Views
Last Modified: 2010-04-10
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.
Comment
Watch Question

ozo
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015

Commented:
#include <stdio.h>
main(){
        int c;      
        while( (c=getchar()) != EOF ){ putchar(c); }
}

Author

Commented:
Edited text of question

Author

Commented:
Adjusted points to 45

Author

Commented:
Adjusted points to 50

Author

Commented:
Edited text of question

Author

Commented:
Edited text of question

Commented:
Please be more specific. How are the computers connected? Using a TCP/IP network? Using RS232? Something else? What is the OS?

Author

Commented:
Edited text of question

Commented:
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.

Author

Commented:
Adjusted points to 80
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.

Author

Commented:
Please write the programme for me please.

Author

Commented:
Adjusted points to 170

Author

Commented:
Please write the prog. for me . I need it urgently.Thank You
 

Commented:
Just use kermit or zmodem - no need to write anything.

Author

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

Author

Commented:
Adjusted points to 205
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 !!!

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
here's my E-mail
      manjitr@yahoo.com
       ThanX A Lot
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.