How to connect to ssl server.

354 views
Skip to first unread message

Junji Takakura

unread,
Apr 19, 2015, 3:48:00 AM4/19/15
to elixir-l...@googlegroups.com
But the client impemented by elixir counld not connect to the server implemented by erlang(and elixir) because the error occurred.
the bellow is the step.

iex(client@xxx)1> :ssl.start()
:ok
iex
(client@xxx)2> {:ok, socket} = :ssl.connect("localhost", 9999,  [], :infinity)
** (MatchError) no match of right hand side value: {:error, {:options, {:socket_options, []}}}

The client impemented by erlang could do.
Is there a different way between erlang and elixir?

Thank you.

Josh Adams

unread,
Apr 19, 2015, 4:20:39 AM4/19/15
to elixir-l...@googlegroups.com

Use single word. List of characters rather than binary string for most Erlang libs

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/32fe79d9-e731-4ccc-a403-a0be09d4dc7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Junji Takakura

unread,
Apr 19, 2015, 4:46:36 AM4/19/15
to elixir-l...@googlegroups.com
Thanks Josh for your reply.
I could solve it.

Thank you.

2015年4月19日日曜日 17時20分39秒 UTC+9 Josh Adams:

Josh Adams

unread,
Apr 19, 2015, 2:57:04 PM4/19/15
to elixir-l...@googlegroups.com

You're apparently great at inferring meaning because my phone autocorrected "quotes" to "word." Glad you figured it out

Junji Takakura

unread,
Apr 19, 2015, 6:30:56 PM4/19/15
to elixir-l...@googlegroups.com
It's ok.
understood the below explanation, "List of characters rather than binary string for most Erlang libs" .
Thank you for your following up.

2015年4月20日月曜日 3時57分04秒 UTC+9 Josh Adams:
Reply all
Reply to author
Forward
0 new messages