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.

communication between 4 client process through server is made successfully.

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: This is header file. include stdio.h unistd.h —————————- revision 1.5 locked by: root; … Continue reading

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

communication between two client process through server process is made successfully.

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: This is header file. include stdio.h unistd.h —————————- revision 1.5 locked by: root; … Continue reading

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

implementing ipc by using fork() process\

RCS file: replacing.c,v Working file: replacing.c head: 1.1 branch: locks: strict     emblogic: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: using pid_t command with fork —————————- revision 1.1    locked by: emblogic; date: … Continue reading

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

Interprocess communication using files (passing fd)…

  RCS file: new.c,v Working file: new.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: It is another process to which initial process will communicate —————————- revision … Continue reading

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

Succesfully transfered string via pipe (Simplex communication).

RCS file: pipe.c,v Working file: pipe.c head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Transfered string via pipe. —————————- revision 1.1 date: 2015/02/28 18:22:26; 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 Pipes:

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: this includes header files different libraries used in our program structure is also … Continue reading

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

Successfully implemented comm. b/w two processes for IPC

RCS file: replacing.c,v Working file: replacing.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: opened the file —————————- revision 1.5 locked by: root; date: 2015/02/26 10:54:29; author: … Continue reading

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

Inter Process Communication using files:

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: this is header file this file includes the standard libraries required in the … Continue reading

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

Inter Process Communication between two files successfully done.

RCS file: fd.c,v Working file: fd.c head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: Here Inter Process Communication is performed between two files. —————————- revision 1.1 locked … Continue reading

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

Implemented the pipe for communicating b/w two processes for IPC

RCS file: replacing.c,v Working file: replacing.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: opened the file —————————- revision 1.5 locked by: root; date: 2015/02/26 10:54:29; author: … Continue reading

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

implementing fork() and execl() with atoi() command to writting on file to another

RCS file: replacing.c,v Working file: replacing.c head: 1.1 branch: locks: strict emblogic: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: using pid_t command with fork —————————- revision 1.1    locked by: emblogic; date: 2015/02/26 … Continue reading

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

implimented the fork() & execl() for writing into a file from another file.

RCS file: replacing.c,v Working file: replacing.c head: 1.5 branch: locks: strict root: 1.5 access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: opened the file —————————- revision 1.5 locked by: root; date: 2015/02/26 10:54:29; author: … Continue reading

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

Implementation of execl() and fork() for writing into textfile from the child process

RCS file: replacing.c,v Working file: replacing.c head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3;    selected revisions: 3 description: i this we have used fork(). —————————- revision 1.3    locked by: root; date: … Continue reading

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

c program to pause the process using system call “wait()”

  RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: it includes all the header files —————————- revision 1.4 locked by: root; … Continue reading

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

Using sigaction() as a replacement of signal().

Signal is a very important call to handle the behavior of any in coming signals as we know as default signal terminate the process but using signal() we can make the signal do according to need by running a function … Continue reading

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