NewStdStreamJoint is used to implement the connection interface so we can connect to the rpc server
(in io.Reader, out io.Writer, exitOnClose bool)
| 39 | |
| 40 | // NewStdStreamJoint is used to implement the connection interface so we can connect to the rpc server |
| 41 | func NewStdStreamJoint(in io.Reader, out io.Writer, exitOnClose bool) *StdStreamJoint { |
| 42 | return &StdStreamJoint{ |
| 43 | local: NewStdinAddr("local"), |
| 44 | remote: NewStdinAddr("remote"), |
| 45 | in: in, |
| 46 | out: out, |
| 47 | exitOnClose: exitOnClose, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // LocalAddr implements interface |
| 52 | func (s *StdStreamJoint) LocalAddr() net.Addr { |
no test coverage detected