Home | History | Annotate | Download | only in jsonrpc

Lines Matching refs:RPC

11 	"net/rpc"
25 // JSON-RPC clients can use arbitrary json values as request IDs.
26 // Package rpc expects uint64 request IDs.
29 // When rpc responds, we use the sequence number in
36 // NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
37 func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec {
64 func (c *serverCodec) ReadRequestHeader(r *rpc.Request) error {
72 // RPC package expects uint64. Translate to
92 // RPC params is struct.
94 // Should think about making RPC more general.
102 func (c *serverCodec) WriteResponse(r *rpc.Response, x interface{}) error {
129 // ServeConn runs the JSON-RPC server on a single connection.
133 rpc.ServeCodec(NewServerCodec(conn))