Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 // 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), )));
 }
Exemplo n.º 5
0
 // 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), )));
 }
Exemplo n.º 6
0
 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;
 }