[erlang-questions] pid to integer and back

Hynek Vychodil vychodil.hynek@REDACTED
Wed Oct 8 18:54:28 CEST 2008


Use term_to_binary and just remove starting 131, 130 and following node
information, you take 9 bytes and use this. Or you can get only ID part
which is only 4bytes. But you must experiment how assemble back and verify.

On Wed, Oct 8, 2008 at 6:24 PM, Joel Reymont <joelr1@REDACTED> wrote:

> I know you can put pids back together with c:pid(X, Y, Z).
>
> How do you take a triple apart, though, without using pid_to_list and
> parsing the string?
>
>        Thanks, Joel
>
> --
> wagerlabs.com
>
>
>
>
>
>


-- 
--Hynek (Pichi) Vychodil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081008/8177ab3b/attachment.htm>


More information about the erlang-questions mailing list