private UnixConnection CreateConnection() { try { ReusableUnixClient client = new ReusableUnixClient (_path); UnixConnection entry = new UnixConnection(this, client); _activeConnections++; return entry; } catch (Exception ex) { throw new RemotingException (ex.Message); } }
public UnixConnection (HostConnectionPool pool, ReusableUnixClient client) { _pool = pool; _client = client; _stream = new BufferedStream (client.GetStream()); _controlTime = DateTime.Now; _buffer = new byte[UnixMessageIO.DefaultStreamBufferSize]; }