Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Communication

Posted on 1997-11-18
19
Medium Priority
?
229 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.
0
Comment
Question by:manjit
19 Comments
 
LVL 85

Expert Comment

by:ozo
ID: 1173467
#include <stdio.h>
main(){
        int c;      
        while( (c=getchar()) != EOF ){ putchar(c); }
}
0
 

Author Comment

by:manjit
ID: 1173468
Edited text of question
0
 

Author Comment

by:manjit
ID: 1173469
Adjusted points to 45
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:manjit
ID: 1173470
Adjusted points to 50
0
 

Author Comment

by:manjit
ID: 1173471
Edited text of question
0
 

Author Comment

by:manjit
ID: 1173472
Edited text of question
0
 
LVL 5

Expert Comment

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

Author Comment

by:manjit
ID: 1173474
Edited text of question
0
 
LVL 5

Expert Comment

by:yonat
ID: 1173475
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
 

Author Comment

by:manjit
ID: 1173476
Adjusted points to 80
0
 

Expert Comment

by:yingchunli
ID: 1173477
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
 

Author Comment

by:manjit
ID: 1173478
Please write the programme for me please.
0
 

Author Comment

by:manjit
ID: 1173479
Adjusted points to 170
0
 

Author Comment

by:manjit
ID: 1173480
Please write the prog. for me . I need it urgently.Thank You
 
0
 
LVL 5

Expert Comment

by:yonat
ID: 1173481
Just use kermit or zmodem - no need to write anything.
0
 

Author Comment

by:manjit
ID: 1173482
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
 

Author Comment

by:manjit
ID: 1173483
Adjusted points to 205
0
 
LVL 1

Accepted Solution

by:
cchaman earned 1200 total points
ID: 1173484
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
 

Author Comment

by:manjit
ID: 1173485
here's my E-mail
      manjitr@yahoo.com
       ThanX A Lot
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

916 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