Lines Matching refs:tclient
28 -record(tclient, {service, protocol, seqid}). record
33 {ok, #tclient{protocol = Protocol,
37 -spec call(#tclient{}, atom(), list()) -> {#tclient{}, {ok, any()} | {error, any()}}.
38 call(Client = #tclient{}, Function, Args)
50 -spec send_call(#tclient{}, atom(), list()) -> {#tclient{}, ok}.
51 send_call(Client = #tclient{}, Function, Args)
58 -spec close(#tclient{}) -> ok.
59 close(#tclient{protocol=Protocol}) ->
66 -spec send_function_call(#tclient{}, atom(), list()) -> {ok | {error, any()}, #tclient{}}.
67 send_function_call(Client = #tclient{service = Service}, Function, Args) ->
84 -spec write_message(#tclient{}, atom(), list(), {struct, list()}, integer()) ->
85 {ok | {error, any()}, #tclient{}}.
86 write_message(Client = #tclient{protocol = P0, seqid = Seq}, Function, Args, Params, MsgType) ->
96 {ok, Client#tclient{protocol = P4}}
101 -spec receive_function_result(#tclient{}, atom()) -> {#tclient{}, {ok, any()} | {error, any()}}.
102 receive_function_result(Client = #tclient{service = Service}, Function) ->
109 read_result(Client = #tclient{protocol = Proto0,
115 NewClient = Client#tclient{protocol = Proto1},
118 NewClient = Client#tclient{protocol = Proto1},
130 handle_reply(Client = #tclient{protocol = Proto0,
138 NewClient = Client#tclient{protocol = Proto2},
153 handle_application_exception(Client = #tclient{protocol = Proto0}) ->
161 NewClient = Client#tclient{protocol = Proto2},