SMPPEX.MC.start
You're seeing just the function
start
, go back to SMPPEX.MC module for more information.
Specs
start({module(), args :: term()}, opts :: Keyword.t()) :: {:ok, listener_ref :: :ranch.ref()} | {:error, reason :: term()}
Starts listener for MC entity.
The listener is started in the supervision tree of the :ranch
application.
Therefore, prefer child_spec/1
, which allows you to start the MC in your own supervision tree.
The first argument must be a {module, arg}
tuple, where module
is the callback module which should implement SMPPEX.Session
behaviour, while arg
is the argument passed to the init
callback each time a new connection is received.
For the list of other options see child_spec/1
.