fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37458?usp=email ) Change subject: sctp_proxy: add type hints for public API ...................................................................... sctp_proxy: add type hints for public API Change-Id: I307e51f1130f08c219c6817629b856764ef7df59 --- M src/sctp_proxy.erl 1 file changed, 14 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/58/37458/1 diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl index 350f655..d325622 100644 --- a/src/sctp_proxy.erl +++ b/src/sctp_proxy.erl @@ -53,14 +53,19 @@ %% public API %% ------------------------------------------------------------------ +-spec start_link(gen_sctp:assoc_id(), + sctp_client:loc_rem_addr(), + inet:port_number()) -> gen_statem:start_ret(). start_link(Aid, MmeAddr, MmePort) -> gen_statem:start_link(?MODULE, [Aid, MmeAddr, MmePort], []). +-spec send_data(pid(), binary()) -> ok. send_data(Pid, Data) -> gen_statem:cast(Pid, {send_data, Data}). +-spec shutdown(pid()) -> ok. shutdown(Pid) -> gen_statem:stop(Pid). -- To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37458?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: erlang/osmo-s1gw Gerrit-Branch: master Gerrit-Change-Id: I307e51f1130f08c219c6817629b856764ef7df59 Gerrit-Change-Number: 37458 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> Gerrit-MessageType: newchange