From owner-freebsd-net Thu Jan 11 0:45:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [207.154.226.10]) by hub.freebsd.org (Postfix) with ESMTP id DE52D37B400 for ; Thu, 11 Jan 2001 00:45:33 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1098) id 5A6152B2BE; Thu, 11 Jan 2001 02:45:33 -0600 (CST) Date: Thu, 11 Jan 2001 02:45:33 -0600 From: Bill Fumerola To: Fook Sheng Cc: freebsd-net Subject: Re: socket programming on FreeBSD - any references ?? Message-ID: <20010111024533.I35827@elvis.mu.org> References: <3A5D6B72.1ED09857@csah.com> <20010111020419.H35827@elvis.mu.org> <3A5D748E.4C61C960@csah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A5D748E.4C61C960@csah.com>; from fschan@csah.com on Thu, Jan 11, 2001 at 04:53:34PM +0800 X-Operating-System: FreeBSD 4.2-FEARSOME-20001103 i386 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jan 11, 2001 at 04:53:34PM +0800, Fook Sheng wrote: > Hi > > I am learning sockets programming , especially raw sockets. I rely on TCP > Illustrated 123 and unix network programming. > > will those examples on these books work on FreeBSD?? > > I'm getting some funny errors when compiling my codes okay, since you didn't catch what I said in my previous email: INET(3) FreeBSD Library Functions Manual INET(3) [..] SYNOPSIS #include #include #include #include there are other files that you may have to include as well. UNP and the other stevens books use libunp.h or something similar that include all the required files for you. please stop skimming and read, the book is very explicit on how to compile. -- Bill Fumerola - security yahoo / Yahoo! inc. - fumerola@yahoo-inc.com / billf@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message