Skip to content

Adi2K/Socket_FileSender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##Socket_FileSender

#How to run:

1) First compile and run the server file from terminal

	gcc server.c
	./server

2) Compile and run the Client file.

	gcc client.c -lreadline
	./client

All the files that are downloaded from the server will be saved in Client folder

Assumption: The percentage display uses line (\n) as a measure of completed task and hence the task is divided accordingly This takes us to the assumption that each line will have no more than 1024 character in it. However if required it can be altered as it is defined as

#define SIZE = 1024

Note : In order to display the % gradually increasing i have put a sleep(1) after each time percentage is printed

About

Implementing Socket in C. Request Files as Client to be copied over from Server side to Client.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages