rpc ~master (2019-04-11T21:28:52Z)
Dub
Repo
TcpJsonRpcClient
rpc
protocol
json
package
class
TcpJsonRpcClient : IJsonRpcClient!(TId, TReq, TResp)(
TId
TReq
:
JsonRpcRequest
!
TId
=
JsonRpcRequest
!
TId
TResp
:
JsonRpcResponse
!
TId
=
JsonRpcResponse
!
TId
) {
import
vibe
.
core
.
net
:
TCPConnection
,
TCPListener
,
connectTCP
;
;
import
vibe
.
stream
.
operations
:
readLine
;
;
import
core
.
time
;
;
import
std
.
conv
:
to
;
;
bool
connected
[@property getter];
this
(string host, ushort port, RpcInterfaceSettings settings);
bool
connect
();
TResp
sendRequestAndWait
(TReq request, core.time.Duration timeout);
void
tick
();
}
Constructors
this
this
(string host, ushort port, RpcInterfaceSettings settings)
Undocumented in source.
Members
Functions
connect
bool
connect
()
Undocumented in source.
sendRequestAndWait
TResp
sendRequestAndWait
(TReq request, core.time.Duration timeout)
auto-generate id
tick
void
tick
()
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
connected
bool
connected
[@property getter]
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