public static async Task <X11Client> ConnectAsync(string host, int display) { var tcpClient = new TcpClient(); X11Client x11Client; try { await tcpClient.ConnectAsync(host, 6000 + display).ConfigureAwait(false); x11Client = new X11Client(tcpClient.GetStream()); await x11Client.SetupConnectionAsync().ConfigureAwait(false); } catch { tcpClient.Dispose(); throw; } x11Client.ReceiveWorker(); return(x11Client); }
public XFixes(X11Client client) { this._client = client; }
public XTest(X11Client client) { this._client = client; }