Behaviours: gen_fsm
.
auth/2 | |
check_clean_pass/2 | |
check_sha1_pass/2 | |
code_change/4 | |
handle_event/3 | |
handle_info/3 | |
handle_sync_event/4 | |
init/1 | |
normal/2 | |
sha1_hex/1 | |
start/4 | |
terminate/3 | |
to_hex/1 |
auth(Request, State) -> any()
check_clean_pass(Pass::binary(), Salt::binary()) -> binary()
check_sha1_pass(Pass::binary(), Salt::binary()) -> binary()
code_change(OldVsn, StateName, StateData, Extra) -> any()
handle_event(Event, StateName, StateData) -> any()
handle_info(Info, StateName, State) -> any()
handle_sync_event(Event, From, StateName, StateData) -> any()
init(X1) -> any()
normal(Request, State) -> any()
sha1_hex(Data::binary()) -> binary()
start(Socket::gen_tcp:socket(), Id::pos_integer(), Handler::atom(), ParseQuery::boolean()) -> {ok, pid()}
terminate(Reason, StateName, State) -> any()
to_hex(Hash::binary() | undefined) -> binary()