Name

gun:open_unix - Open a connection to the given Unix domain socket

Description

Open a connection to the given Unix domain socket.

Arguments

SocketPath

Path to the Unix domain socket to connect to.

Opts

Options for this connection.

Return value

The pid of the newly created Gun process is returned. Note that this does not indicate that the connection has been successfully opened; the gun_up(3) message will be sent for that.

Changelog

  • 1.0: Function introduced.

Examples

Connect to a server via a Unix domain socket
Connect to a server via a Unix domain socket with custom options

See also