I have to write program using ANSI C which allows to copy directories [files and / or catalogs] between two computers in network [client - server program] using sockets. On both computers is installed linux. I CAN'T using system commands for this.
To explain how it should work: In terminal I type:
name_of_my_program /path_of_file_or_catalog computer_ip/path_where_to_copy
And it should copy files or whole catalog to this place.
I don't have any idea how to move on directories without system commands. I don't ask you for code. Just ideas or litle samples of code - you know, just "framework". How to do this? I don't have any problems with write program using sockets. I already have that.
I will be grateful for ideas and tips. Thanks in advance!