From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Client/server program sample code request.. Date: Thu, 21 Sep 2000 17:27:50 +0100 From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20000921162737.0E86E199D0@mail> Topicbox-Message-UUID: 0b157822-eac9-11e9-9e20-41e7f4b1d025 > > Where can I find a client/server (simple service like echo service) > > using 9P? > > try 'man 2 dial' > > AFAIK the announce() and dial() calls work with 9P as well as with tcp... actually, announce() and dial() make network connections; 9p is a protocol that runs on top of a network connection. a service implemented with 9p is presented as a file tree. to implement one you have to decide what you want the file tree to look like. a simple, static set of files is easiest to implement. see 9p(2) for a library that facilitates implemention of 9p servers. perhaps you meant "il" (the preferred LAN protocol for 9p), in which case, the programming is exactly the same as for tcp or udp (use announce() or dial()) except substituting "il" for "tcp" or "udp" in the address string. cheers, rog.