From owner-freebsd-questions Sun May 6 13:35:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from brainlink.com (mail.brainlink.com [149.2.32.129]) by hub.freebsd.org (Postfix) with ESMTP id A523C37B422 for ; Sun, 6 May 2001 13:35:21 -0700 (PDT) (envelope-from spork@gronim.com) Received: from [208.41.77.198] (HELO gronim.com) by brainlink.com (CommuniGate Pro SMTP 3.3.2) with ESMTP id 6258540; Sun, 06 May 2001 16:34:56 -0400 Received: (from spork@localhost) by gronim.com (8.11.3/8.11.0) id f46KVts65472; Sun, 6 May 2001 16:31:55 -0400 (EDT) (envelope-from spork) Date: Sun, 6 May 2001 16:31:55 -0400 From: Spike Gronim To: Mikko Tyolajarvi Cc: william@brainlink.com, questions@freebsd.org Subject: Re: bind() on FreeBSD Message-ID: <20010506163155.A65425@spike.gronim.com> References: <20010506130102.A65011@spike.gronim.com> <200105062008.f46K8iq77567@explorer.rsa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <200105062008.f46K8iq77567@explorer.rsa.com>; from mikko@dynas.se on Sun, May 06, 2001 at 01:08:44PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, May 06, 2001 at 01:08:44PM -0700, Mikko Tyolajarvi wrote: > In local.freebsd.questions you write: > [...] > > >int main() { > > int ret, listenfd; > > struct sockaddr_in sai; > > > > memset(&sai, 0, sizeof(sai)); Exactly what the doctor ordered. Thank you. > > > sai.sin_family = AF_INET; > > inet_aton("127.0.0.1",&sai.sin_addr); > > sai.sin_port = htons(7697); > > [...] > > $.02, > /Mikko > -- > Mikko Työläjärvi_______________________________________mikko@rsasecurity.com > RSA Security -- --Spike Gronim gronimw@stuy.edu "Oh yes? An obscene triangle which, has more courage than the word." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message