EmbLogic's Blog

Project 3 IPC: Server Client using Message Queues

Implemented
#Server Client using message queues and ran for 650 clients using 2 queues for receiving and sendg…
Issues Faced:
*The queues werent getting created… Have to be a superuser to create queues… Found system call perror(“”); very useful to detect the error in this case as it clearly states why the above operation wasnt successful.
*The sprintf() ans sscanf() which were used for data transfer werent working properly…..Resolved by sandwiching a character between two integers  in sscanf and sprintf.  Also couldnt send a large string %s using sprintf.
*The clients were accepting each others mail..Resolved by setting the msg type to pid of the client thru getpid()

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>