From owner-freebsd-questions@FreeBSD.ORG Thu Nov 11 05:08:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE50516A4CE for ; Thu, 11 Nov 2004 05:08:04 +0000 (GMT) Received: from pd4mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F24B43D7E for ; Thu, 11 Nov 2004 05:08:04 +0000 (GMT) (envelope-from flowers@nekulturny.org) Received: from pd3mr6so.prod.shaw.ca (pd3mr6so-qfe3.prod.shaw.ca [10.0.141.21])2004))freebsd-questions@freebsd.org; Wed, 10 Nov 2004 22:06:07 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd3mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I700095N0U7NT30@pd3mr6so.prod.shaw.ca> for freebsd-questions@freebsd.org; Wed, 10 Nov 2004 22:06:07 -0700 (MST) Received: from procyon.nekulturny.org (S0106000c41b2b9a3.cg.shawcable.net [68.144.45.143]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I70006210U6D4@l-daemon> for freebsd-questions@freebsd.org; Wed, 10 Nov 2004 22:06:07 -0700 (MST) Received: from procyon.nekulturny.org (localhost.nekulturny.org [127.0.0.1]) iAB560lp002474; Wed, 10 Nov 2004 22:06:01 -0700 (MST envelope-from flowers@nekulturny.org) Received: (from flowers@localhost) by procyon.nekulturny.org (8.12.10/8.12.10/Submit) id iAB560sm002473; Wed, 10 Nov 2004 22:06:00 -0700 (MST envelope-from flowers) Date: Wed, 10 Nov 2004 22:06:00 -0700 From: Danny MacMillan In-reply-to: <20041111041057.74056.qmail@web51609.mail.yahoo.com> To: Mark Jayson Alvarez Message-id: <20041111050600.GA616@procyon.nekulturny.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <20041111041057.74056.qmail@web51609.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: Question regarding X windows client-server implementation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 05:08:05 -0000 On Wed, Nov 10, 2004 at 09:10:57PM -0700, Mark Jayson Alvarez wrote: [...] > But then I'm confused by the fact that I can let my > x clients connect to a remote x server,(eg, on a LAN). > > How can that be? > For example, I'm looking at my monitor right now.. > And then there is this xorg installed on another pc > beside me. Now what I'm thinking is that the xorg > installed on another pc, knows the specs of my monitor > and graphics card and then I will authenticate my self > to it remotely.. then what? the x server will manage > my monitor and keyboard inputs remotely??? I'm no X expert, but this is how it seems to me: A server is just a piece of code that does something when another piece of code (a client) asks it to. So your X server, which knows all about your hardware, sits there waiting for the X client to ask it to do something. Like "draw a square" or "print the letter 'X'" or "tell me what key was just pressed". In the case of X the client and server can be separated by a network, in which case these requests and corresponding response data have to travel down the wire. The nomenclature is a bit confusing at first because we're used to thinking of the client code being closest to the human and server code as being farthest away (at least I am). The keyboard, mouse, and video are not remote from the X server; they're local to the X server. The X clients execute on the remote box, but have their I/O sent through a network connection to the X server. It's not very different conceptually from connecting to a Unix box using an SSH client from another machine. If I SSH in to my home machine from work and run vi, vi is running on my home box, but the output is displayed on my work box and the input is collected from my work box. The only difference is the shift in perspective needed to mentally reverse the 'client' and 'server' roles. -- Danny