aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/codec/codec.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-08-07 15:56:49 +0800
committerBas van Kervel <bas@ethdev.com>2015-08-12 18:22:16 +0800
commitf9cbd16f27e393d4937354ee31435e0a2f689484 (patch)
tree0b9668443084923b2b264cd0fb1b1b8c604cf1d6 /rpc/codec/codec.go
parent2fcf7f1241648dc2c0ed90a122c5945f25b3ce1a (diff)
downloaddexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.gz
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.bz2
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.lz
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.xz
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.tar.zst
dexon-f9cbd16f27e393d4937354ee31435e0a2f689484.zip
support for user agents
Diffstat (limited to 'rpc/codec/codec.go')
-rw-r--r--rpc/codec/codec.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/codec/codec.go b/rpc/codec/codec.go
index 2fdb0d8f3..786080b44 100644
--- a/rpc/codec/codec.go
+++ b/rpc/codec/codec.go
@@ -31,6 +31,8 @@ type ApiCoder interface {
ReadRequest() ([]*shared.Request, bool, error)
// Parse response message from underlying stream
ReadResponse() (interface{}, error)
+ // Read raw message from underlying stream
+ Recv() (interface{}, error)
// Encode response to encoded form in underlying stream
WriteResponse(interface{}) error
// Decode single message from data