<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV><BR><DIV><DIV>Le 28 déc. 06 à 08:32, Kenneth Lundin a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Unfortunately you misspelled the call to gen_tcp:listen so we did not get</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">any useful tracing. Can you try once more and call</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">gen_tcp:listen(0,[]) when the tracing is initiated as before.</DIV></BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Here is the result on my not-erlang-friendly Windows XP machine:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Eshell V5.5.2 (abort with ^G)</DIV><DIV>1> dbg:tracer().</DIV><DIV>{ok,<0.31.0>}</DIV><DIV>2> dbg:tracer().</DIV><DIV>{error,already_started}</DIV><DIV>3> dbg:p(all,c).</DIV><DIV>{ok,[{matched,nonode@nohost,22}]}</DIV><DIV>4> dbg:tp(inet,dbg:fun2ms(fun(_)->return_trace() end)).</DIV><DIV>{ok,[{matched,nonode@nohost,67},{saved,1}]}</DIV><DIV>5> dbg:tp(prim_inet,dbg:fun2ms(fun(_)->return_trace() end)).</DIV><DIV>{ok,[{matched,nonode@nohost,47},{saved,1}]}</DIV><DIV>6> dbg:tp(inet_config,dbg:fun2ms(fun(_)->return_trace() end)).</DIV><DIV>{ok,[{matched,nonode@nohost,4},{saved,1}]}</DIV><DIV>7> gen_tcp:listen(0,[]).</DIV><DIV>(<0.29.0>) call inet:listen_options([{port,0}],inet)</DIV><DIV>{error,enotsock}(<0.29.0>) returned from inet:listen_options/2 -> {ok,{listen_opts,</DIV><DIV> {0,0,0,0},</DIV><DIV> 0,</DIV><DIV> 5,</DIV><DIV> -1,</DIV><DIV> [{active,true}]}}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(<0.29.0>) call inet:open(-1,{0,0,0,0},0,[{active,true}],stream,inet,inet_tcp)</DIV><DIV>8> (<0.29.0>) call prim_inet:open(stream,inet)</DIV><DIV>8> (<0.29.0>) returned from prim_inet:open/2 -> {ok,#Port<0.97>}</DIV><DIV>8> (<0.29.0>) call prim_inet:setopts(#Port<0.97>,[{active,true}])</DIV><DIV>8> (<0.29.0>) returned from prim_inet:setopts/2 -> ok</DIV><DIV>8> (<0.29.0>) call prim_inet:bind(#Port<0.97>,{0,0,0,0},0)</DIV><DIV>8> (<0.29.0>) returned from prim_inet:bind/3 -> {error,enotsock}</DIV><DIV>8> (<0.29.0>) call prim_inet:close(#Port<0.97>)</DIV><DIV>8> (<0.29.0>) returned from prim_inet:close/1 -> ok</DIV><DIV>8> (<0.29.0>) returned from inet:open/7 -> {error,enotsock}</DIV><DIV>8></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I hope this helps,</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV>Mickaël Rémond</DIV><DIV> <A href="http://www.process-one.net">http://www.process-one.net</A>/</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>