From owner-freebsd-questions Fri Dec 1 17:43:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 0DA7037B400 for ; Fri, 1 Dec 2000 17:43:22 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 1421hw-0006Da-00; Sat, 02 Dec 2000 01:43:20 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by buffy.raggedclown (8.10.2/8.10.2) id eB21hH805435; Sat, 2 Dec 2000 02:43:17 +0100 From: Cliff Sarginson Date: Sat, 2 Dec 2000 02:43:15 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" To: Gustavo Vieira Goncalves Coelho Rios , questions@freebsd.org References: <3A282EC8.65821F84@ifour.com.br> In-Reply-To: <3A282EC8.65821F84@ifour.com.br> Subject: Re: web monitoring system MIME-Version: 1.0 Message-Id: <00120202431504.04232@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday 02 December 2000 00:05, Gustavo Vieira Goncalves Coelho Rios wrote: > Hi folks! > > I now this questions does not belong to freebsd, but since i run it, > this list is the closer i get to have my doubt kicked! > > I am planning a web based system to help monitor my boxes! Since it will > be designed to be used by web browsers i would have to install a web > server on every box i would like to set. THAT'S NOT AN OPTION. > > My ideia is to write a single tools that will listen to an arbitrary > port and will accept http requests and write the output to the user > browser. > > Since i will have to known how a form is passed to the web server to > have my small utility written. My questions is: what are the source of > documentation should i seek for ? RFCs ? A kick ass book on UNIX Network > Programming? What you gurus suggest me ? > Mmmm. This is a fairly ambitious project :) Some questions: 1 - Can you already program in "C" or "perl", these are the two best choices (wait for contrary opinions !) for network programming. 2 - Do you know what sockets are ? If yes and yes. I would if I were you start off by writing some simple socket programs. This will give you a good appreciation of TCP/IP issues (and is very satsifying). Write a simple client/server program pair that will copy files from one system to another, that's a good exercise. Remember RFC are semi-formal protocol specifications, they don;t write the code ! The very best book on this kind of thing is Unix Network Programming, by ..?? Cannot remember his name. It used to be in 1 edition, now it is in 2 I believe. It is INCREDIBLY expensive (at least in Holland where I live). But it is just about all you will ever need to know, and is real world stuff. Good Luck. Post your progress :) Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message