register Port???
Nico Weling
nico.weling@REDACTED
Thu Sep 20 16:15:18 CEST 2001
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.
More information about the erlang-questions
mailing list