funbox/smppex

Process name for SMPPEX.ESME.start_link

sergey-chechaev opened this issue · 2 comments

Can we add process name to SMPPEX.ESME.start_link like in GenServer:

# Start the server and register it locally with name MyStack
{:ok, _} = GenServer.start_link(Stack, [:hello], name: MyStack)

# Now messages can be sent directly to MyStack
GenServer.call(MyStack, :pop)
#=> :hello

Now if we need to add a process name for SMPPEX.Session we add Process.register to callback init. It is not very convenient.

Hello!
Yes, it's a common convention to pass option keyword list from start_link to the underlying GenServer.start_link call.

But actually SMPP session processes are not started with GenServer.start_link.

Wouldn't it be then confusing to «emulate» some of GenServer options?

Closing due to inactivity.