Mailroom.Socket.connect

You're seeing just the function connect, go back to Mailroom.Socket module for more information.
Link to this function

connect(server, port, opts \\ [])

View Source

Specs

connect(String.t(), integer(), Keyword.t()) :: {:ok, t()} | {:error, String.t()}

Connect to a TCP server on port

The following options are available:

  • ssl - default false, connect via SSL or not
  • timeout - default 15000, sets the socket connect and receive timeout
  • debug - default false, if true, will print out connection communication

Examples

{:ok, socket} = Mailroom.Socket.connect("localhost", 110, ssl: true)