the platform I am writing the code on is unix based, command line stuff.
I am more accustom to writing in c++ but my current task requires I alter a c program.
I am dropping the data from file to a socket. I read in line by line the entire contents of a file.
Problem is, the send is taking too long, since the file is so large. I need to zip the file and send the contents in a copressed manner. However, I don't know of any means to read from a compressed file, in a line by line manner.
So I decided to just attempt a full file send of the zip file to the destination and then uncompress it. I know how to do a remove file using stdio.h remove() but, I was wondering if there was anyway to send a file in c to a destination address using socke to socket addressing?
In c++ I can send files to different drives but this is unique to me.
I'm sorry I know this is vague, I'm just trying to find a good starting point. Any help would be greatly appreciated.