rpc v1.1.0 (2018-09-06T18:10:46Z)
Dub
Repo
TCPJsonRPCClient
rpc
protocol
json
Undocumented in source.
class
TCPJsonRPCClient : IJsonRPCClient!TId(
TId
) {
import
vibe
.
core
.
net
:
TCPConnection
,
TCPListener
,
connectTCP
;
;
import
vibe
.
core
.
net
:
TCPConnection
,
TCPListener
,
connectTCP
;
;
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);
bool
connect
();
JsonRPCResponse
!
TId
sendRequestAndWait
(JsonRPCRequest!TId request, core.time.Duration timeout);
void
tick
();
}
Constructors
this
this
(string host, ushort port)
Undocumented in source.
Members
Functions
connect
bool
connect
()
Undocumented in source.
sendRequestAndWait
JsonRPCResponse
!
TId
sendRequestAndWait
(JsonRPCRequest!TId 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
JsonRPCAutoClient
JsonRPCError
JsonRPCMethodException
JsonRPCRequest
JsonRPCResponse
JsonRPCUserException
RawJsonRPCAutoClient
RawJsonRPCClient
RawJsonRPCServer
TCPJsonRPCAutoClient
TCPJsonRPCClient
TCPJsonRPCServer
functions
jsonRpcMethodHandler