rpc ~master (2019-04-11T21:28:52Z)
Dub
Repo
RawJsonRpcClient
rpc
protocol
json
package
class
RawJsonRpcClient : RawRpcClient!(TId, TReq, TResp)(
TId
TReq
:
JsonRpcRequest
!
TId
=
JsonRpcRequest
!
TId
TResp
:
JsonRpcResponse
!
TId
=
JsonRpcResponse
!
TId
) {
import
core
.
time
:
Duration
;
;
import
vibe
.
data
.
json
;
;
import
vibe
.
stream
.
operations
:
readAllUTF8
;
;
import
vibe
.
core
.
stream
:
InputStream
,
OutputStream
;
;
this
(OutputStream ostream, InputStream istream);
TResp
sendRequestAndWait
(TReq request, Duration timeout);
void
tick
();
TResp
waitForResponse
(TId id, Duration timeout);
}
Constructors
this
this
(OutputStream ostream, InputStream istream)
Undocumented in source.
Members
Functions
sendRequestAndWait
TResp
sendRequestAndWait
(TReq request, Duration timeout)
Send a request with an auto-generated id.
tick
void
tick
()
Undocumented in source. Be warned that the author may not have intended to support it.
waitForResponse
TResp
waitForResponse
(TId id, Duration timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
rpc
protocol
json
aliases
HttpJsonRpcClient
IJsonRpcClient
IJsonRpcServer
JsonRpcRequestHandler
classes
HttpJsonRpcAutoClient
HttpJsonRpcServer
JsonRpcAutoAttributeClient
JsonRpcAutoClient
JsonRpcError
JsonRpcMethodException
JsonRpcRequest
JsonRpcResponse
JsonRpcUserException
RawJsonRpcAutoClient
RawJsonRpcClient
RawJsonRpcServer
TcpJsonRpcAutoClient
TcpJsonRpcClient
TcpJsonRpcServer
functions
jsonRpcMethodHandler