예제 #1
0
        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);
        }
예제 #2
0
파일: XFixes.cs 프로젝트: azyobuzin/whc
 public XFixes(X11Client client)
 {
     this._client = client;
 }
예제 #3
0
 public XTest(X11Client client)
 {
     this._client = client;
 }