EmbLogic's Blog

Category Archives: Project 03: Client Server Communication using Linux and IPC

We need to creat an Inter Process Communication based Client-Server setup. There should be a Server program, Some clients would send requests to the server and the server would further find the appropriate client to process the request. The server then invokes the new client so as to process the request. The new client should then rend the result back to the server , which then sends it forward to the requesting client.

client,server and process communication via pipes

RCS file: RCS/server.c,v Working file: server.c head: 1.8 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 8;    selected revisions: 8 description: program which act as a server to take the request of client done:created one child … Continue reading

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

process replacement followed by inter process comm. using file

This is the output: [root@localhost ipc]# ./p_comm File Open Successfully This is Parent with id=31340 This is child with id=31341 This is a new program which replaced the child Write By Child:: Success Read by Parent: Success     Child Said:Hello … Continue reading

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

Process replacement using execl

RCS file: p_replace.c,v Working file: p_replace.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: program to replace the child process using execl() —————————- revision 1.2 date: 2014/09/22 10:22:30;  author: … Continue reading

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

Completed creating a new process using fork, how orphan process works, wait by parent till child exit

RCS file: fork.c,v Working file: fork.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4;    selected revisions: 4 description: program to create a duplicate process using fork —————————- revision 1.4 date: 2014/09/18 17:37:44;  author: … Continue reading

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

Execl file replacement

Sir I have made two files in home/vivek/process directory named fork.c and add.c and I had made one child process and then call execl function by giving its path/file name then file name and then NULL argument. But it is … Continue reading

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

Client Server communication -IPC ( using message queue )

header file ———————————-   RCS file: ./header.h,v Working file: ./header.h head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: —————————- revision 1.5 locked by: root; date: 2014/08/23 08:22:06; author: … Continue reading

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

IPC (Using FIFOS , without semaphores)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.5 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 5; selected revisions: 5 11 description: 12 Implementing ipc using … Continue reading

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

IPC (USING PIPES, WITHOUT SYNCHRNISATION)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.5 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 5; selected revisions: 5 11 description: 12 Implementing ipc using … Continue reading

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

IPC using PIPES — logfile

RCS file: ./server1.c,v Working file: ./server1.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4;    selected revisions: 4 description: Server for server-client application. —————————- revision 1.4 date: 2014/08/11 06:59:46;  author: root;  state: Exp;  lines: … Continue reading

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

rcs of sever program in IPC……

RCS file: ./server.c,v 3 Working file: ./server.c 4 head: 1.200 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 200;   selected revisions: 200 11 description: 12 This is the server program … Continue reading

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

file opening

RCS file: mdc.c,v Working file: mdc.c head: 1.4 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: started the project on data compression. opening file . —————————- revision 1.4 date: 2014/07/17 10:00:14; … Continue reading

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

client server communication

for three client—— i’ve used common pipe for processing of data of all the client while i’ve used three different pipe between each client and server for their respective data communication. —–server—- RCS file: ./server.c,v Working file: ./server.c head: 1.4 … Continue reading

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

client server communication using pipe

i’ve done this program for two client — inside this program i have to client which need two different action(operation) .the server accept the request of client by using pipe .to perform their desired operation the server again sent this … Continue reading

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

program to handle orphan process

when the parent process finish it’s execution and the child process is not finished then in this case prompt don’t come normally.the termination goes abnormal then we get the prompt.to resolve this issue we use wait() RCS file: ./orphan_using_wait.c,v Working … Continue reading

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

program for single server client ipc

program for server: for single server,client and process i have used one pipe for communication between server and client and another one for communication between server and process .as pipe can only used between related process thats why we need … Continue reading

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