From owner-freebsd-questions Thu Oct 26 10:54:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 8A83F37B479 for ; Thu, 26 Oct 2000 10:54:26 -0700 (PDT) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 13orEP-000Kt9-00 for freebsd-questions@freebsd.org; Thu, 26 Oct 2000 18:54:25 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) id SAA32874 for freebsd-questions@freebsd.org; Thu, 26 Oct 2000 18:54:25 +0100 (BST) (envelope-from jcm) Date: Thu, 26 Oct 2000 18:54:24 +0100 From: j mckitrick To: freebsd-questions@freebsd.org Subject: question on remote procedure calls Message-ID: <20001026185424.A31453@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hey everybody, i have to write a simple file server for a school project. I found documention on rpcgen, which will be invaluable. Assuming i can get this to work, what might be a good way to transfer the file once i find it? I was thinking this shouldn't be too hard. I can just pass the name of a file to the 'server' and it will attempt to open it, with standard unix fopen. If it succeeds, would ftp be a good way to send it? Or break it up into chunks and send it back as a parameter? Is there some reasonably simple code that would get me started or give me ideas? Thanks in advance, jcm -- "That depends on what the meaning of the word 'is' is." -President Bill Clinton "I don't know what you mean by the word 'ask.'" -CEO Bill Gates To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message