[erlang-questions] How to convert erlang_pid structure into ErlDrvTermData?

Ahmed Omar spawn.think@REDACTED
Fri Aug 24 14:28:56 CEST 2012


Hi Sergey,
I think what you are looking for is
http://www.erlang.org/doc/man/erl_driver.html#driver_caller
"This function returns the process id of the process that made the current
call to the driver. The process id can be used withdriver_send_term to send
back data to the caller".
or
http://www.erlang.org/doc/man/erl_driver.html#driver_connected


On Thu, Aug 23, 2012 at 2:48 PM, Zhemzhitsky Sergey <
Sergey_Zhemzhitsky@REDACTED> wrote:

>  Hi guys,****
>
> ** **
>
> I need to convert erlang_pid structure into ErlDrvTermData that will be
> passed to ****
>
> driver_send_term(ErlDrvPort ix, ErlDrvTermData to, ErlDrvTermData* data,
> int len) function in linked-in driver.****
>
> ** **
>
> Is it possible to achieve? ****
>
> ** **
>
> Best Regards,****
>
> Sergey****
>
> ** **
>
> _______________________________________________________
>
>
>
> The information contained in this message may be privileged and conf
> idential and protected from disclosure. If you are not the original
> intended recipient, you are hereby notified that any review,
> retransmission, dissemination, or other use of, or taking of any action in
> reliance upon, this information is prohibited. If you have received this
> communication in error, please notify the sender immediately by replying to
> this message and delete it from your computer. Thank you for your
> cooperation. Troika Dialog, Russia.
>
> If you need assistance please contact our Contact Center (+7495) 258 0500or go to
> www.troika.ru/eng/Contacts/system.wbp
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120824/3e6f48fa/attachment.htm>


More information about the erlang-questions mailing list