This repository contains 2 C files, a client and a server. The client will transfer a specified file to the servers directory.
This code will only run on Unix based systems!
-
Compile the code using gcc
gcc server.c -o server gcc client.c -o client
-
Move the binaries into the folder which you want to transfer the file (the client can be anywhere if wanted, this is just for ease of explaination).
-
Run the server
./server
-
In a seperate teminal window Run the client, pass the file path of your chosen file into it.
./client /home/user/Documents/someFile
- C Programming
- Systems Programming on UNIX with C
- Web Sockets
- TCP Communication