EmbLogic's Blog

E30 : Taruna

RCS file: server.c,v
Working file: server.c
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;     selected revisions: 3
description:
This is the server to handle requests from requesting client.
Initially , it is able to handle single client.
Opened the fifo between client and server in read only mode and printed the file descriptor.
Server was able to read the request sent by the requesting client.
till here , code is working fine.
—————————-
revision 1.3
date: 2013/06/26 06:38:11;  author: emblogic;  state: Exp;  lines: +105 -20
Now created threads for respective requests from the clients.
These threads invoked processing clients to calculate the results depending on the request.
Used detached threads in this project and the server is able to handle multiple requests successfully.
Server is in infinite loop , so multiple clients can send their requests.

till here , code is working fine.
—————————-
revision 1.3
date: 2013/06/26 06:38:11;  author: emblogic;  state: Exp;  lines: +105 -20
Now created threads for respective requests from the clients.
These threads invoked processing clients to calculate the results depending on the request.
Used detached threads in this project and the server is able to handle multiple requests successfully.
Server is in infinite loop , so multiple clients can send their requests.
Using message queue , thread sens the request to processing client and receives the result through message queue. It writes this result to the respective client using fifo.
Unlinking of fifo and deletion of message queues is still pending.
—————————-
revision 1.2
date: 2013/06/25 09:22:13;  author: emblogic;  state: Exp;  lines: +33 -3
Now created a thread in the server.
Passed the operator from the main thread to the new thread.
Was able to receive this argument and print it in the new thread.
Used pthread_join system call to wait for the new thread to complete its task.but later I am going to use detached threads.
—————————-
revision 1.1
date: 2013/06/25 07:48:48;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: Vikram Sharma

——————————————-
revision 1.5
date: 2013/06/26 14:31:12;  author: vikram;  state: Exp;  lines: +27 -12
300 Clients Served Successfully.
with NO changes.
fro version 1.4.
—————————-
Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E30: Om Parkash::project 4(server client project using FIFO’s & Threads)

RCS file: server.c,v
Working file: server.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;    selected revisions: 1
description:
srvr working for upto 60 clients using fifo’s & threads….
—————————-

revision 1.1

date: 2013/06/26 04:18:21;  author: emblogic;  state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

E 30 Avtar Singh

RCS file: server.c,v
Working file: server.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;    selected revisions: 2
description:
server with one processing client to increment received data by 1.
in this threads are invoking processing client for operation.
two message queues is used b/w server & requesting client ,one to send data & 2nd to receive data from thread.
—————————-
revision 1.2
date: 2013/06/25 18:30:00;  author: root;  state: Exp;  lines: +42 -17
Server with two messege queue ,1st to receive data from clients & 2nd to send processed data from server to requesting client.
In this server invoke thread to give response to the requesting client.
Thread call the processing client through fork and execl call.
—————————-
revision 1.1
date: 2013/06/25 12:29:16;  author: root;  state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: Vikram Sharma

RCS file: ./server.c,v
Working file: server.c
head: 1.4
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
Initial server.c
But some BUGS.
—————————-
revision 1.4
date: 2013/06/26 03:13:53;  author: vikram;  state: Exp;  lines: +45 -19
Used exclusive fifo for each Processing Client.
Still need to work on this.
—————————-
revision 1.3
date: 2013/06/25 22:39:48;  author: vikram;  state: Exp;  lines: +2 -2
Server working Good for exclusive clients.
—————————-
revision 1.2
date: 2013/06/25 22:17:58;  author: vikram;  state: Exp;  lines: +2 -0
fetching proper Req from client.
:)
—————————-
revision 1.1
date: 2013/06/25 21:42:34;  author: vikram;  state: Exp;
Initial revision
=============================================================================

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

E 30: JATINDER KUMAR

keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
Intially i creted a server.
then i use mkfifo and access to use the fifo created by client.
further i opened same fifo in the O_RDONLY mode and was able to read from the fifo successfully.
—————————-
revision 1.5
date: 2013/06/25 16:48:40; author: jatinder; state: Exp; lines: +33 -1
NO change
—————————-
revision 1.4
date: 2013/06/25 16:29:57; author: jatinder; state: Exp; lines: +61 -33
In this version i made new architecture of server.
seprately invoked pthread for seprate client.
then thread invkoe the pclient.
used message queue for sending data betwenn server and pclient.
data send by client1 successfully sent in the respective pthread and in thread this data was sent to pclient via msg queue.
and pclient successfully read the data send by client via server.
—————————-
revision 1.3
date: 2013/06/25 09:57:30; author: jatinder; state: Exp; lines: +19 -8
*** empty log message ***
—————————-
revision 1.2
date: 2013/06/25 09:33:42; author: jatinder; state: Exp; lines: +31 -1
Now created thread in the main and pass successfully operator from main thred to new thread.
in new thread successfully obtined the operator.
also used pthread_join system call to wait for compliation of new thread.but later on we used detached thread.
—————————-
revision 1.1
date: 2013/06/25 07:58:32; author: jatinder; state: Exp;
Initial revision
=============================================================================
42,1 Bot

Posted in Project 04: FTP based Client Server using Threads and Sockets | Tagged | Leave a comment

Project 3

Completed Project 3 with pipes , fifo , message queue … Also used semaphores to synchronise the data.

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Leave a comment

Project 3

Completed Project 3 with pipes , fifo , message queue … Also used semaphores to synchronise data. Able to communicate with multiple clients without jumbling of data…

Implemem

Posted in Project 03: Client Server Communication using Linux and IPC, Uncategorized | Leave a comment

SSH Server

Implemented SSH server completely…

Able to send as well as receive data using scp…

Now , thorough with the SSH server!!!!

Posted in Project 00: Linux System / Network Administration, Uncategorized | Tagged | Leave a comment

finally implemented ftp server…..

 

 

Posted in Uncategorized | Leave a comment

about ftp srever

just done and understand the final step of it,,understand the terms “get” and “put”..and m :)

 

Posted in Project 00: Linux System / Network Administration, Uncategorized | Leave a comment

ftp server

its done now… :-)

Posted in Project 00: Linux System / Network Administration, Uncategorized | Leave a comment

ftp server

was anybody successful in transfering file from one server to client in e new batch???

Posted in Uncategorized | Leave a comment

Jackpot – 2

Posted in Jackpot | 10 Comments

Please Explain!

struct ABC
{
int a;
float b;
char c;
};
int main(){
struct ABC *ptr=(struct ABC *)0;
ptr++;
printf(“Size of structure is: %d”,*ptr);
return 0;
}

Can u please explain this?

Posted in Data Structures with C | 1 Comment