You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using
gen_server:start_link({local, ?SERVER}, ?MODULE, [Port], []).
...................
{ok, LSock} = gen_tcp:listen(lists:nth(1, Port), [{active, true}),
get a problem
** exception exit: function_clause
in function inet_tcp:getserv/1
called as inet_tcp:getserv([1055])
so I tried that
{ok, LSock} = gen_tcp:listen(lists:nth(1, Port), [{active, true}]),
now it goes well.
why does it have this problem?
The text was updated successfully, but these errors were encountered:
when using
gen_server:start_link({local, ?SERVER}, ?MODULE, [Port], []).
...................
{ok, LSock} = gen_tcp:listen(lists:nth(1, Port), [{active, true}),
get a problem
** exception exit: function_clause
in function inet_tcp:getserv/1
called as inet_tcp:getserv([1055])
so I tried that
{ok, LSock} = gen_tcp:listen(lists:nth(1, Port), [{active, true}]),
now it goes well.
why does it have this problem?
The text was updated successfully, but these errors were encountered: