Tag Archives: ipc

Socket programming based Home Automation

The main aim of this project is to implement Socket programming using Embedded linux based boards using beagle bone as server and pc as a client. The entire electrical system like home appliances are interfaced to Server (Beagle bone black) … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC, Project 04: FTP based Client Server using Threads and Sockets, Project 6: Client Server using Inter Process Communication Mechanism, Project 9: Embedded Linux on ARM | Tagged , , , | Leave a comment

How to Send a signal -Using Kill command

Send a signal by Kill command ======================= – To send a signal to a process other than current task. – It has prototype :- int kill(pid_t pid, int signo); – It is included using header :- #include<signal.h> – The system … Continue reading

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

How to register a signal

Register a signal ================== – Program can handle a signal using signal library function signal(). – signal() is used to register the signal handler function with kernel on behalf of current process. – It is included in header :- #include<header.h> … Continue reading

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

About Signals

Signals ======== – A signal is an event generated by UNIX/LINUX system in response to some condition. – On receipt of a signal, process may in turn take some action. – Signals are generated by some error conditions such as:- … Continue reading

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

Types of Interprocess Communications in Linux

Types of Inter-process Communications (IPCs) in Linux : 1. Pipes 2. Named Pipes/FIFO 3. Signals 4. Semaphores 5. Message Queue 6. Shared Memory  

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

Client Server Using IPC by using message queues and pipes for single user

logfile of project ============= ============= RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: It includes basic headers for implementation It includes … Continue reading

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

CIient Server using IPC for FIFO,Pipes and Signals for n clients

RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: It includes basic headerfiles for FIFOs. It contains stdio.h, fcntl.h, unistd.h, sys/types.h, sys/stat.h … Continue reading

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

Client Server communication in IPC using FIFO for 3 clients

Logfile of Project ——————————– ——————————– 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: It includes basic headerfiles for FIFOs. It contains … Continue reading

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

Client Server Communication using FIFO for single server and a client when result FIFO created by client

Logfile of Project ———————————— ———————————— RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: It contains basic header files for communication using … Continue reading

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

IPC using FIFO for single server and a client when both FIFO(result and request) created by server

RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: It contains basic header files for communication using FIFO. —————————- revision 1.2    locked … Continue reading

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

PID, PPID and NICE value of a process

PCB (Process Control Board) ———————————- Every Process has its Process Control Board(PCB) which tells about the process. PCB contains PID,PPID,PC(program counter),nice value of process. PID :- * PID is Process Identification of any process. * It is a number . … Continue reading

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

IPC using Pipes for single user

RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: stdio.h , fcntl.h, unistd.h, sys/types.h are included. —————————- revision 1.2    locked by: root; … Continue reading

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

Project 03: Client Server implementation using PIPES

Here i have used 3 requesting clients and 3 processing clients. RCS file: header1.h,v Working file: header1.h head: branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 0 description: this is the header file.it contains library which … Continue reading

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

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