i downloaded the source for the code given in Unix network programming by R. Stevens. i tried a fifo program like below.
in the client program:-
created the server fifo
send the data throgh that fifo
wait for the result through another fifo created by client
in the server program:-
created the FIFO for server to get values
open it for read and then write
get data from client
process the request
then reply through another FIFO made by client
During the first run it works, ie, i send the name of a file and it replies with the content of the file. but when i put in a loop and try the the first time it works.. but during the second run it gives no reply....
if somebody can analyse it with this.. pls let me know.. otherwise just tell me i will attach the source