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
=============================================================================

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>