EmbLogic's Blog

Project 3 IPC Server Client using FIFO and pipes

Completed Server client using pipes and fifo
**Issues faced
#Using Pipe—-The parent was executing before the client and terminating and the data in the pipe was nt read by the client …Resolved using sleep condition in both server and client.

#Using Pipe—The system call pipe when made in if(!pid) condition was nt letting arr to be accessed in parent due to which the pipe wasnt reading data…. Resolved by putting pipe(arr) in the beginning befor fork()

#in fifo project if i ran the client script containing 10-100 clients after ./server then the server is reading data of only the foreground client and terminating…Resolved by running the script first then after 2secs starting the server ./server.

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>