Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to convert erlang_pid structure into ErlDrvTermData?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Zhemzhitsky Sergey  
View profile  
 More options Aug 23 2012, 8:48 am
From: Zhemzhitsky Sergey <Sergey_Zhemzhit...@troika.ru>
Date: Thu, 23 Aug 2012 12:48:08 +0000
Local: Thurs, Aug 23 2012 8:48 am
Subject: [erlang-questions] How to convert erlang_pid structure into ErlDrvTermData?

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 0500 or go to www.troika.ru/eng/Contacts/system.wbp  

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmed Omar  
View profile  
 More options Aug 24 2012, 8:28 am
From: Ahmed Omar <spawn.th...@gmail.com>
Date: Fri, 24 Aug 2012 14:28:56 +0200
Local: Fri, Aug 24 2012 8:28 am
Subject: Re: [erlang-questions] How to convert erlang_pid structure into ErlDrvTermData?

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 <

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Zhemzhitsky  
View profile   Translate to Translated (View Original)
 More options Aug 25 2012, 6:39 am
From: Sergey Zhemzhitsky <szh.s...@gmail.com>
Date: Sat, 25 Aug 2012 14:39:19 +0400
Local: Sat, Aug 25 2012 6:39 am
Subject: Re: [erlang-questions] How to convert erlang_pid structure into ErlDrvTermData?

Hello Ahmed,

Thanks a lot!
What I'd like to achieve is to send messages to any erlang process from a separate thread in a driver.
The only thing I was able to find is the following blog entry 
http://dudefrommangalore.blogspot.com/2009/03/rpc-from-erlang-linked-in-driver-port.html. According to the latest sources of the otp, this way should still be valid.

Regards,
Sergey


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@troika.ru> 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 0500 or go to www.troika.ru/eng/Contacts/system.wbp
 

_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »