Skip to content

An application for terminal FTP using stream sockets

Notifications You must be signed in to change notification settings

palsreturn2/FTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line tool for File Transfer Protocol

Synopsis

This is a command line tool for transfering files from one machine to another. One of the machines serves as a Server and the others serve as Clients. The client program has a command line interface and can be used for file transfer between itself and the server machine. Following commands are allowed.

  1. ls: list all the files in the current directory in the client.

  2. lls: list all the files in the current directory of the server.

  3. get: Download a particular file from the server.

  4. put: Upload a particular file to the server.

  5. mget: Download multiple files from the server.

  6. mput: Upload multiple files to the server.

The program has been tested on various kind of files like .FLV, .PDF, .TXT, .MP4, .MP3.

Motivation

This was a lab assignment in Computer Networks lab at my University to learn how to use sockets to transfer information from one machine to another.

Installation and running

To compile the program, do the following.

  1. gcc ServerNew.c ServerFunc.c -o Server in a machine.

  2. gcc ClientNew.c ClientFunc.c -o Client in another machine.

To run the program, do the following.

  1. Run "./Server" on the command line in one machine.

  2. Run "./Client hostname" on the command line in other machine. "hostname" can be ip of the server machine.

About

An application for terminal FTP using stream sockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages