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.

Changing the behavior of Pipe using funtion- ‘fcntl()’

The pipe() system call is used to create a pipe which returns two file-descriptors; one for read and one for write. If pipe is empty, then reader waits until data is available to read from the pipe which is termed … Continue reading

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

Shared Memory

“Shared memory allows two or more processes to share the same region (segment) of physical memory” “One processes simply write data to the shared memory region, which will available to all other processes attached to that region & any of … Continue reading

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

Message_queue

RCS file: msg_que_fork.c,v Working file: msg_que_fork.c head: 1.22 branch: locks: strict emblogic: 1.22 access list: symbolic names: keyword substitution: kv total revisions: 22;    selected revisions: 22 description: This is my frist prog. on mag queue. —————————- revision 1.22    locked by: … Continue reading

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

Inter process communication using threads and message queues for 3 clients successfully done.

RCS file: server.c,v Working file: server.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: This is the base file for server. Created message queue to receive request. … Continue reading

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

Implemented Pipes through Signals for 3 clients

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: Declared stdio.h,stdlib.h,unistd.h Declred the prototype for invoke_req_clients() Gave the prototype for struct req_client … Continue reading

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

Three different thread exclusively work to open, read and write operation.

RCS file: multi_thread.c,v Working file: multi_thread.c head: 1.1 branch: locks: strict vishal: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Three different thread is created to open a file read the data from … Continue reading

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

implimenting sockets by using AF_UNIX DOMAIN

RCS file: 1.c,v Working file: 1.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: here declare the header file , give the struct variable name adresss then … Continue reading

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

implimentation done of socket by using AF_UNIX domain

RCS file: server.c,v Working file: server.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: use the socket.h header creat a socket by using socket function which return … Continue reading

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

Interprocess communication using message queues at the requesting side and shared memory at the processing side with three clients successfully implemented.

RCS file: header.h,v Working file: header.h head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: >> header file: contains header files which are required in the program mostly named stdio.h,sys/shm.h,sys/ipc.h,sys/types.h,sys/msg.h ============================================================================= RCS file: server.c,v … Continue reading

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

Successfully done process comm. using message queue for single client

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is header file —————————- revision 1.1 date: 2015/04/06 06:08:57; author: root; state: Exp; Initial … Continue reading

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

Inter process communication using message queues with three requesting clients and three processing clients implemented successfully

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict psingh: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: define header files thar are required for the implementation of message queues at … Continue reading

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

Successfully done IPC using message queue for 3 requesting and 3 processing clients.

RCS file: server.c,v Working file: server.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: RCS file: server.c,v Working file: server.c head: 1.6 branch: locks: strict root: 1.6 … Continue reading

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

Inter process communication using fifo at the requesting side and pipes at the processing side using semaphores and signals.

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict psingh: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: gave header files which are required for the fifo and semaphore implementation. gave … Continue reading

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

Successfully done IPC using FIFO for 3 requesting and 3 processing clients using semaphores.

RCS file: server.c,v Working file: server.c head: 1.5 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: This is the base file for IPC using FIFO for 3 requesting and 3 processing … Continue reading

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

Successfully done IPC using FIFO for Multiple clients with Semaphores

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