EmbLogic's Blog

IPC client-server project using pipes only.

Output is:
[root@VIPIN server_client_comm4.1]# ./server
Requesting client1 has written 12 bytes of data on server
Processing client1 has recieved 12 bytes of data from server
The recieved data is
a=7
b=4
operator=+
Result calculated by the processing client1 is 11
Processing client1 has written the result of 4 bytes on server
Requesting client1 has recieved 4 bytes of result from server
The result display by requesting client1 is=11

Requesting client2 has written 12 bytes of data on server
Processing client2 has recieved 12 bytes of data from server
The recieved data is
a=7
b=3
operator=-
Result calculated by the processing client2 is 4
Processing client2 has written the result of 4 bytes on server
Requesting client2 has recieved 4 bytes of result from server
The result display by requesting client2 is=4

Requesting client3 has written 12 bytes of data on server
Processing client3 has recieved 12 bytes of data from server
The recieved data is
a=10
b=2
operator=/
Result calculated by the processing client3 is 5
Processing client3 has written the result of 4 bytes on server
Requesting client3 has recieved 4 bytes of result from server
The result display by requesting client3 is=5
[root@VIPIN server_client_comm4.1]#

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>