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()