public gobClientCodec(io.ReadWriteCloser rwc = default, ref ptr <gob.Decoder> dec = default, ref ptr <gob.Encoder> enc = default, ref ptr <bufio.Writer> encBuf = default) { this.rwc = rwc; this.dec = dec; this.enc = enc; this.encBuf = encBuf; }
public conn(sync.Mutex mutex = default, io.ReadWriteCloser rwc = default, bytes.Buffer buf = default, header h = default) { this.mutex = mutex; this.rwc = rwc; this.buf = buf; this.h = h; }
public gobServerCodec(io.ReadWriteCloser rwc = default, ref ptr <gob.Decoder> dec = default, ref ptr <gob.Encoder> enc = default, ref ptr <bufio.Writer> encBuf = default, bool closed = default) { this.rwc = rwc; this.dec = dec; this.enc = enc; this.encBuf = encBuf; this.closed = closed; }
// NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn. public static rpc.ClientCodec NewClientCodec(io.ReadWriteCloser conn) { return(addr(new clientCodec(dec: json.NewDecoder(conn), enc: json.NewEncoder(conn), c: conn, pending: make(map[uint64] string), ))); }
// NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn. public static rpc.ServerCodec NewServerCodec(io.ReadWriteCloser conn) { return(addr(new serverCodec(dec: json.NewDecoder(conn), enc: json.NewEncoder(conn), c: conn, pending: make(map[uint64] * json.RawMessage), ))); }
public Conn(Reader Reader = default, Writer Writer = default, Pipeline Pipeline = default, io.ReadWriteCloser conn = default) { this.Reader = Reader; this.Writer = Writer; this.Pipeline = Pipeline; this.conn = conn; }
public readWriteCloserBody(incomparable _ = default, ref ptr <bufio.Reader> br = default, io.ReadWriteCloser ReadWriteCloser = default) { this._ = _; this.br = br; this.ReadWriteCloser = ReadWriteCloser; }