From owner-freebsd-questions Tue Mar 27 17:14:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id D55C437B718 for ; Tue, 27 Mar 2001 17:14:18 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id E7D496AB60; Wed, 28 Mar 2001 10:44:16 +0930 (CST) Date: Wed, 28 Mar 2001 10:44:16 +0930 From: Greg Lehey To: Gabriel Ambuehl Cc: freebsd-questions@FreeBSD.ORG Subject: Re: good book on UNIX TCP/IP socket programming in C++? Message-ID: <20010328104416.I92853@wantadilla.lemis.com> References: <85286437044.20010327193622@buz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <85286437044.20010327193622@buz.ch>; from gabriel_ambuehl-fbquestions@buz.ch on Tue, Mar 27, 2001 at 07:36:22PM +0200 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] On Tuesday, 27 March 2001 at 19:36:22 +0200, Gabriel Ambuehl wrote: > > I know that this is a bit off topic but still, I think the audience > is probably a pretty good one to ask this: I'm looking for a good > book on UNIX TCP/IP socket programming in C++. It looks as if you're looking for two completely different books here. I'm pretty sure that you won't find a book about TCP/IP specifically relating to C++. > It doesn't have to cover stuff like what OO is (I know it from > Python which by far nicer to code in, IMHO ;-) but some discussion > of pointers and references wouldn't hurt (is Stroustrup any good on > this? If yes, I'm probably willing to buy two books). Yes, Stroustrup goes into nauseating detail about this sort of thing. If you can understand it, it's worth buying the book, but it's very technical. > Language may either be English or German (no clear preference as > many German translations are pretty horrible). Some coverage of > interaction with the system itself (ioctls etc) would be nice as > well. That's a third book. > Any good recommendations (no, I don't want to learn C)? I'd recommend you learn C. If you don't know C, you can't hope to understand C++, TCP/IP or ioctls. Apart from that, Stevens for the TCP/IP book. > Or any other widely used programming languages with acceptable > speed? C. > I want to implement a monitoring system for our network. Now while > the one I made in Python works just fine, it's is horribly slow > (which I largely attribute to the fact that Python's URLLIB is > implemented in Python since my own code is far less resource > intensive than that one). I now hope to either rewrite the core > modules in C++ or reimplement the whole thing in it. JOOI, what do you hope to get out of C++ that you can't get out of C? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message