From owner-freebsd-net Tue May 16 14:44:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id BFF2837B990 for ; Tue, 16 May 2000 14:44:05 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C1131.dip0.t-ipconnect.de [62.156.17.49]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id XAA29440; Tue, 16 May 2000 23:43:52 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 0416CAC2C; Tue, 16 May 2000 23:44:00 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id XAA21220; Tue, 16 May 2000 23:43:57 +0200 (CEST) (envelope-from alex) Date: Tue, 16 May 2000 23:43:57 +0200 From: Alexander Langer To: Zhihui Zhang Cc: Manny Obrey , freebsd-net@FreeBSD.ORG Subject: Re: socket programming, since the topic has come up Message-ID: <20000516234357.A21177@cichlids.cichlids.com> References: <20000516211633.56356.qmail@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from zzhang@cs.binghamton.edu on Tue, May 16, 2000 at 05:34:52PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thus spake Zhihui Zhang (zzhang@cs.binghamton.edu): > > Each NIC has a unique IP address, right? You can bind to that address. Yes. Take a look at the daemon I had. You don't bind to INADDR_ANY but to the IP (that is, also for outgoing). You should buy a TCP/IP-programming book such as Stevens' "Unix Network Programming". It's very good. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message