leo_rpc_server_listener¶
leo_rpc_server_listener is a rpc-server’s listener.
References
Description¶
leo_rpc_server_listener is a rpc-server’s listener
Function Index¶
accept/5 | Callback - Accept the communication. |
init/5 | Callback - Initialize the server. |
start_link/5 | Start a rpc-server’s listener. |
Function Details¶
accept/5¶
accept(ListenSocket, State, Module, Active, Options) -> ok
- ListenSocket = gen_tcp:socket()
- State = any()
- Module = module()
- Active = boolean()
- Options = #tcp_server_params{}
Callback - Accept the communication
init/5¶
init(Parent, Socket, State, Module, Options) -> ok
- Parent = pid()
- Socket = gen_tcp:socket()
- State = any()
- Module = module()
- Options = #tcp_server_params{}
Callback - Initialize the server
start_link/5¶
start_link(Id, Socket, State, Module, Options) -> {ok, pid()}
- Id = {atom(), atom()}
- Socket = pid()
- State = atom()
- Module = module()
- Options = #tcp_server_params{}
Start a rpc-server’s listener