gen_rpc_driver behaviour (gen_rpc v3.0.1)
Link to this section Summary
Link to this section Callbacks
Link to this callback
accept/1
Specs
accept(term()) -> {ok, gen_tcp:socket() | ssl:sslsocket()} | {error, term()}.
Link to this callback
activate_socket/1
Specs
activate_socket(term()) -> ok.
Link to this callback
authenticate_client/3
Specs
authenticate_client(term(), tuple(), binary()) -> ok | {error, {badtcp | badrpc, term()}}.
Link to this callback
authenticate_server/1
Specs
authenticate_server(term()) -> ok | {error, {badtcp | badrpc, term()}}.
Link to this callback
connect/2
Specs
connect(atom(), inet:port_number()) -> {ok, term()} | {error, term()}.
Link to this callback
copy_sock_opts/2
Specs
copy_sock_opts(term(), term()) -> ok | {error, any()}.
Link to this callback
get_peer/1
Specs
get_peer(term()) -> {inet:ip4_address(), inet:port_number()}.
Link to this callback
listen/1
Specs
listen(inet:port_number()) -> {ok, term()} | {error, term()}.
Link to this callback
send/2
Specs
send(term(), binary()) -> ok | {error, term()}.
Link to this callback
set_acceptor_opts/1
Specs
set_acceptor_opts(term()) -> ok.
Link to this callback
set_controlling_process/2
Specs
set_controlling_process(term(), pid()) -> ok | {error, term()}.
Link to this callback
set_send_timeout/2
Specs
set_send_timeout(term(), timeout() | undefined) -> ok.