Hi,
I am trying to develop a concurrent networking application on CAF. It is fun :) So here are some issues I faced as a newbie and as a result a few redundant questions
1. Is there any documentation around how the infer_handle_from_fun mapping works? I was looking for instance/reference/pointer handling and a principled way to pass around actor references between actors when spawning stuff.
2. That brings me to the second question. Is there a paradigm to pass around actor references in actual messages ?
3. Are there any more specific examples on using the network broker for IP communication? As an example, I was trying to extract the sender ip and sender while using a udp_datagram servant and am plodding around the source code to understand if it is encoded somewhere in the new_datagram_msg.
4. Lastly super mundane, lazy question: I for the death of me cannot get this lambda to compile:
caf::others >> [ = ] (caf::message_view & m) -> caf::result<caf::message> {
return caf::sec::unexpected_message;
}
This is straight out of the documentation and the compile error message seems to ask for the very signature being supplied. Am I getting something terribly wrong ?
-Bashuman