OLD | NEW |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package jsonrpc | 5 package jsonrpc |
6 | 6 |
7 import ( | 7 import ( |
| 8 "encoding/json" |
8 "errors" | 9 "errors" |
9 "fmt" | 10 "fmt" |
10 "io" | 11 "io" |
11 "json" | |
12 "net" | 12 "net" |
13 » "rpc" | 13 » "net/rpc" |
14 "testing" | 14 "testing" |
15 ) | 15 ) |
16 | 16 |
17 type Args struct { | 17 type Args struct { |
18 A, B int | 18 A, B int |
19 } | 19 } |
20 | 20 |
21 type Reply struct { | 21 type Reply struct { |
22 C int | 22 C int |
23 } | 23 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 return errors.New("net.Pipe does not support timeouts") | 212 return errors.New("net.Pipe does not support timeouts") |
213 } | 213 } |
214 | 214 |
215 func (p *pipe) SetReadTimeout(nsec int64) error { | 215 func (p *pipe) SetReadTimeout(nsec int64) error { |
216 return errors.New("net.Pipe does not support timeouts") | 216 return errors.New("net.Pipe does not support timeouts") |
217 } | 217 } |
218 | 218 |
219 func (p *pipe) SetWriteTimeout(nsec int64) error { | 219 func (p *pipe) SetWriteTimeout(nsec int64) error { |
220 return errors.New("net.Pipe does not support timeouts") | 220 return errors.New("net.Pipe does not support timeouts") |
221 } | 221 } |
OLD | NEW |