File Transfer Application
File Transfer Application
This projectwork is to be submitted by student in for
Network Programming. This projectwork is
done according to the breif points provided in the assignment and it implements
all the points that are mentioned in this assignment.
Ø Introduction to TFTP
TFTP stands for Trivial File Transfer Protocol.
It is a mechanism to tranfer files from one device to another. TFTP was
designed to be small, simple and easy to implement. It uses UDP port 69 and
runs on IP networks. It doesn’t provide any kind of error handling capability
so all the error handling has to be done at the Application Layer. TFTP Server
is a means to transfer files. Server and client, both machines involved in this
transpotation acts as sender and receiver.
Ø Application Objective
Aim of this project
was to gain knowledge of TFTP protocol through practcal implementation. It has
been developed to understand how two hosts share data using TFTP. Host use UDP
sockets to transfer data.
Ø Network Packet Design Description
struct CommunicationStruct
{
unsigned int act;
unsigned int fileSize;
unsigned int numberOfPacks;
char *localFilename;
char *serverFilename;
};
The structure is used to perform
communication between client and server application for “get” file and “put” file
operations.
After the server accepts the client’s request,
both can act as sender and receiver, the data is sent in form of packets in
between client to server.
Ø Technology
Programming Language Used : C
Compiler : GCC
Operation System : ubuntu
For development I have used Ubuntu operating system and I have used GCC compiler (For c language).
Ø How to use the Application
Extract the .zip file provided into a
directory, it will create a directory TFTP
that contains all the necessary source files for the application along
with a make file and readme file.
To use the application first compile the application using the make file.
After successful compilation, it can be used to transfer simple files between. First run server application and then run client application.
§ How to get/put file
./client [server-ip-address] [get/put] [local-file-name] [server-file-name]
[server-ip-address] :- It specifies the server ip address
[get/put] :- It specifies the get or put operation command that specifies that the file will be send to server or get from the server.
[local-file-name] :- Specifies name of the file that will be send or created on client machines when user wants a get operation.
[server-file-name] :- Specifies name of the file on server that will be ceated on server when client sends a file to the server, or will be fetched from the server when client want a get operation.
Read more about Computer Programming
Assignment Help
Ø Conclusion
This application uses TFTP protocol for file
transfer between hosts. This application contains very simple and easy to use
interface.
It can be further modified with more features in future like multithreading, using time outs and acknowledgements so that client and server both can handle the data more efficiently.
Post Your Ad Here

Comments