<div dir="ltr">Hi all,<div><br></div><div>probably someone in this ml is able to give me a pointer to the correct source code: I am trying to follow the path of a message from the send operation in Erlang to the driver through the VM, and from the reception of the packets from the network to the delivery of the message in Erlang (when the "receive" operator is used).</div>
<div>Now, I was able to follow the "send" path thoroughly, but I am stuck in the "receive" path: I went from the io.c:driver_output to dist.c:erts_net_message to erl_message.c:erts_queue_dist_message, and at this point the received message is put inside the process queue.</div>
<div>Where is the message extracted then? I guess that somewhere the message is taken from the queue, the binary stream (the message, because the header is already extracted in dist.c) unpacked into a term and the term given to the process, and in particular I am looking for the place where the term is unpacked...</div>
<div><br></div><div>P.S.: sorry if the request is so low level :)<br clear="all"><div><br></div>-- <br>Sivieri Alessandro<br><a href="mailto:alessandro.sivieri@gmail.com" target="_blank">alessandro.sivieri@gmail.com</a><br>
<a href="http://sivieri.wordpress.com/" target="_blank">http://sivieri.wordpress.com/</a><br>
</div></div>