From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32752 invoked by alias); 14 May 2011 17:03:41 -0000 Received: (qmail 32744 invoked by uid 22791); 14 May 2011 17:03:40 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-fx0-f49.google.com (HELO mail-fx0-f49.google.com) (209.85.161.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 May 2011 17:03:25 +0000 Received: by fxm14 with SMTP id 14so3123416fxm.36 for ; Sat, 14 May 2011 10:03:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.51.4 with SMTP id b4mr987525fag.93.1305392603071; Sat, 14 May 2011 10:03:23 -0700 (PDT) Received: by 10.223.123.74 with HTTP; Sat, 14 May 2011 10:03:23 -0700 (PDT) In-Reply-To: <20110512114651.GB499@brand.ammanford.ecoscentric.com> References: <20110512114651.GB499@brand.ammanford.ecoscentric.com> Date: Sun, 15 May 2011 12:09:00 -0000 Message-ID: From: ratheesh kannoth To: Daniel Morris Cc: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] AF_UNIX in ecos X-SW-Source: 2011-05/txt/msg00039.txt.bz2 On Thu, May 12, 2011 at 5:16 PM, Daniel Morris wr= ote: > On Thu, May 12, 2011 at 04:44:24PM +0530, ratheesh kannoth wrote: >> eCos support AF_UNIX sockets ? > > Round cheeses roll? > > http://www.gerv.net/hacking/how-to-ask-good-questions/ > > =A0Daniel > > %<---------------------------------------------------------------------- > =A0Daniel Morris - Sales & Marketing Director > =A0eCosCentric - The eCos and RedBoot experts > =A0Tel: +44 1223 245 571 - info@eCosCentric.com > =A0DDI: +44 1269 591 171 - danielm@eCosCentric.com > > Daniel, I did some experiment on AF_UNIX support in eCos. I have a strange pro= b. int s =3D socket(AF_LOCAL, SOCK_DGRAM, 0 ); sleep(120); int k =3D socket(AF_LOCAL, SOCK_DGRAM, 0 ); The first socket system call fails with errno 325( protocol not supported ). but second socket() call succeed . But, AF_INET socket is created without any error. http://www.ecoscentric.com/ecospro/doc.cgi/html/ref/net-common-tcpip-manpag= es-socket.html mentions support of AF_LOCAL. But in ecos-3.0, packages/net/snmp/lib/v3_0/src/snmp_api.c : 165 says "no support for local sockets ". If anybody has some clue, greatly appreciated. -Ratheesh -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss