EmbLogic's Blog

RCS for FTP based Client Server project using sockets and threads

This  code works for multiple clients trying to download any file at same time using AF_INET. For every  client server creates a new thread and that thread responds to the client.

rcs for server.

RCS file: ./server.c,v
Working file: ./server.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10;    selected revisions: 10
description:
ftp server
—————————-
revision 1.10    locked by: root;
date: 2014/10/06 16:04:13;  author: root;  state: Exp;  lines: +4 -2
now server is printing .
—————————-
revision 1.9
date: 2014/10/01 13:47:44;  author: root;  state: Exp;  lines: +13 -16
while loop added .
—————————-
revision 1.8
date: 2014/10/01 13:19:07;  author: root;  state: Exp;  lines: +12 -2
now the size of file is transfered first .
—————————-
revision 1.7
date: 2014/10/01 12:02:49;  author: root;  state: Exp;  lines: +39 -6
server sends the file contents in small packets to the client.
af-inet implemented successdully for one client as multithread application.
—————————-
revision 1.6
date: 2014/10/01 07:03:02;  author: root;  state: Exp;  lines: +1 -1
successfully sent the list of files to the client.
—————————-
revision 1.5
date: 2014/10/01 05:59:58;  author: root;  state: Exp;  lines: +24 -22
removed silly errors .
—————————-
revision 1.4
date: 2014/09/30 16:20:38;  author: root;  state: Exp;  lines: +24 -23
sent the list of files to client.
—————————-
revision 1.3
date: 2014/09/30 13:31:05;  author: root;  state: Exp;  lines: +12 -4
done with get and put commaands to client.
—————————-
revision 1.2
date: 2014/09/30 12:11:37;  author: root;  state: Exp;  lines: +45 -5
created threads to get the list of files in the specified directory.
—————————-
revision 1.1
date: 2014/09/30 11:32:01;  author: root;  state: Exp;
Initial revision
=============================================================================

rcs for client..

RCS file: ./client1.c,v
Working file: ./client1.c
head: 1.9
branch:
locks: strict
root: 1.9
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;    selected revisions: 9
description:
this is the client1
—————————-
revision 1.9    locked by: root;
date: 2014/10/06 16:52:56;  author: root;  state: Exp;  lines: +8 -3
client recieving the file in new folder.
—————————-
revision 1.8
date: 2014/10/06 16:35:22;  author: root;  state: Exp;  lines: +5 -4
file will be downloaded in another folder
—————————-
revision 1.7
date: 2014/10/01 13:19:29;  author: root;  state: Exp;  lines: +6 -6
file size is recieved as well
—————————
revision 1.6
date: 2014/10/01 12:04:42;  author: root;  state: Exp;  lines: +36 -4
client recieved the file from the server.
—————————-
revision 1.5
date: 2014/10/01 07:03:23;  author: root;  state: Exp;  lines: +22 -17
sucessfully read list of files to be downloaded from server.
—————————-
revision 1.4
date: 2014/10/01 06:00:18;  author: root;  state: Exp;  lines: +20 -11
modified code a bit.
—————————-
revision 1.3
date: 2014/09/30 16:20:52;  author: root;  state: Exp;  lines: +13 -8
recieved the list of files from the server.
—————————-
revision 1.2
date: 2014/09/30 13:31:40;  author: root;  state: Exp;  lines: +15 -1
read the put and get commands from user.
send user the response get/put.
—————————-
revision 1.1
date: 2014/09/30 11:32:01;  author: root;  state: Exp;
Initial revision
=============================================================================

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>