[erlang-questions] inet:getopts

David Mercer dmercer@REDACTED
Wed Aug 8 18:11:10 CEST 2007

Yes, I am an idiot.  The problem, of course, is that S is the tuple
{ok,#Port<0.110>}.  It works fine when I actually pay attention:


32> {ok, S} = gen_tcp:connect("localhost", 1210, [{active, once}]).


33> inet:getopts(S, [active]).                                     



Sorry for the waste of bandwidth.





From: David Mercer [mailto:dmercer@REDACTED] 
Sent: Wednesday, August 08, 2007 11:06
To: 'Erlang Questions'
Subject: inet:getopts


I can never get any good response out of inet:getopts/2:


1> S = gen_tcp:connect("localhost", 1210, [{active, once}]).


2> inet:getopts(S, [active]).                               


=ERROR REPORT==== 8-Aug-2007::10:36:53 ===

Error in process <0.62.0> with exit value:




** exited:



                             {shell,eval_loop,3}]} **


I have confirmed that I am successfully making the connection.  What am I
doing wrong?  I do not understand the error report.  Please advise.


David Mercer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070808/49e2ec3c/attachment.htm>

More information about the erlang-questions mailing list