register Port???

Sean Hinde Sean.Hinde@REDACTED
Thu Sep 20 16:24:04 CEST 2001


Try on R8!

Sean

> -----Original Message-----
> From: Nico Weling [mailto:nico.weling@REDACTED]
> Sent: 20 September 2001 15:15
> To: erlang-questions@REDACTED
> Subject: register Port???
> 
> 
> Hi,
> 
> is it possible to register an port?
> 
> 
> Eshell V4.9.1  (abort with ^G)
> 
> (testnode@REDACTED)1> TonePid = open_port({spawn, tone}, 
> [{packet, 2}]).
> #Port<0.13>
> 
> (testnode@REDACTED)2> register(tone_port,TonePid).
> 
> =ERROR REPORT==== 20-Sep-2001::16:23:33 ===
> Error in process <0.35.0> on node 'testnode@REDACTED' with 
> exit value: 
> {badarg,[{erlang,register,[tone_port,<0,13>]},{erl_eval,expr,3
> },{erl_eval,exprs,4},{shell,eval_loop,2}]}
> ** exited: {badarg,[{erlang,register,[tone_port,#Port<0.13>]},
>                     {erl_eval,expr,3},
>                     {erl_eval,exprs,4},
>                     {shell,eval_loop,2}]} **
> 
> 
> Thanks in advance,
> 
> Nico.
> 



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list