public Reader(RpcSocket socket = null, Header header = null, Handler handler = null) { this.socket = socket; this.header = header; this.handler = handler; mS = new MemoryStream(); bR = new BinaryReader(mS); }
public Handler(Header header, string host, string service, int timeout) { try { this.header = header; this.socket = new RpcSocket(host, int.Parse(service), timeout); } catch (Exception ex) { throw new RpcException(string.Format("Error connecting to host:{0} service:{1} timeout:{2}" , host, service, timeout), ex); } }
public Handler(Header header, RpcSocket socket) { this.header = header; this.socket = socket; }