// NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
// NewServerCodec returns a new rpc . ServerCodec using JSON - RPC on conn .
func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec {
	return &ServerCodec{
		dec: json.NewDecoder(conn),
		enc: json.NewEncoder(conn),
		c:   conn,
	}
}
func NewServerCodec ( conn io . ReadWriteCloser ) rpc . ServerCodec { return & ServerCodec { dec : json . NewDecoder ( conn ) , enc : json . NewEncoder ( conn ) , c : conn , } }
NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
NewServerCodec returns a new rpc . ServerCodec using JSON - RPC on conn .