Using C to send files between 2 Com Ports.

This is a discussion on Using C to send files between 2 Com Ports. within the C Programming forums, part of the General Programming Boards category; Hi there, Has anyone got any code for sending, encrypting and receiving a file between two computers using the com ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    3

    Using C to send files between 2 Com Ports.

    Hi there,

    Has anyone got any code for sending, encrypting and receiving a file between two computers using the com ports using C programming language.

    Thank you.

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Communication via the serial port (com port) is OS dependent I believe. What OS are you using? Try googling or searching the board or faq first. I believe you should find your answer

  3. #3
    Registered User
    Join Date
    Nov 2009
    Posts
    3
    Using XP as the operating system. Basically we have to write the code for sending encryption and receiving in C first then disassemble it into assembly level programming.

  4. #4
    Registered User
    Join Date
    Nov 2009
    Location
    Maryland, USA
    Posts
    46
    Quote Originally Posted by Dearster View Post
    Basically we have to write the code for sending encryption and receiving in C first then disassemble it into assembly level programming.
    That sentence encompasses three large topics:
    • Data transfer over a serial line
    • Encryption
    • Compiling C into assembly

    You've said you are using a PC running Windows XP on one end of the transfer, what is on the other end? This sounds like it might be for an embedded application, which would add a fourth wrinkle.

    All of them are interesting topics. But you'll get better answers if you break down your question into smaller chunks and give more details.

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    3
    File transfer between 2 PC's both using Windows XP operating system using the COM ports on both PC's.

    Need to code a program that runs on both machines.

    1st Program needs to Send file and encrypt it using an algorithm such as XOR encryption.
    2nd Program needs to Receive file and Decrypt it, I understand if I use XOR encryption then decryption should be able to use the same code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error opening files in a different dir
    By Ozzie in forum C++ Programming
    Replies: 3
    Last Post: 10-09-2008, 07:55 AM
  2. Program Deployment and DLL/OCX Files?
    By dfghjk in forum C++ Programming
    Replies: 5
    Last Post: 06-16-2008, 03:47 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  4. send zip file via socket
    By WaterNut in forum C Programming
    Replies: 11
    Last Post: 05-24-2005, 12:49 PM
  5. sending files
    By majoub in forum Networking/Device Communication
    Replies: 1
    Last Post: 03-06-2005, 11:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21