Hi all
I developed a client server program that uses secure RTP API's. This program opens a text file and read the content of the file and sends it to client. At the client side the content will display on std output. To read the content of the file i used fgets(). The real problem was, when i tried to transfer a file by reading its content using fread() and writing its content at client side using fwrite(), it is not transferring the exact file.
The client server program is working for transferring strings of a text file but it is unable to transfer the file.
I will post the code with in short peroid
Thanks in advance
vasu
I developed a client server program that uses secure RTP API's. This program opens a text file and read the content of the file and sends it to client. At the client side the content will display on std output. To read the content of the file i used fgets(). The real problem was, when i tried to transfer a file by reading its content using fread() and writing its content at client side using fwrite(), it is not transferring the exact file.
The client server program is working for transferring strings of a text file but it is unable to transfer the file.
I will post the code with in short peroid
Thanks in advance
vasu
Comment