From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9276 invoked by alias); 29 Oct 2005 09:50:00 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 9244 invoked by uid 22791); 29 Oct 2005 09:49:57 -0000 Received: from mailgw.univr.it (HELO mailgw.univr.it) (157.27.6.150) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Sat, 29 Oct 2005 09:49:57 +0000 Received: (qmail 31178 invoked by uid 1010); 29 Oct 2005 09:49:55 -0000 Received: from gerardo.rossi@studenti.univr.it by mailgw.univr.it by uid 1003 with qmail-scanner-1.22-st-qms (spamassassin: 2.63. Clear:RC:1(157.27.6.36):. Processed in 0.031204 secs); 29 Oct 2005 09:49:55 -0000 X-Antivirus-UNIVR-Mail-From: gerardo.rossi@studenti.univr.it via mailgw.univr.it X-Antivirus-UNIVR: 1.22-st-qms (Clear:RC:1(157.27.6.36):. Processed in 0.031204 secs Process 31172) Received: from unknown (HELO students2.univr.it) (157.27.6.36) by mailgw.univr.it with SMTP; 29 Oct 2005 09:49:55 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by students2.univr.it (Postfix) with ESMTP id 0C69427409A; Sat, 29 Oct 2005 11:46:44 +0200 (CEST) Received: from students2.univr.it ([127.0.0.1]) by localhost (students2.univr.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15611-03; Sat, 29 Oct 2005 11:46:42 +0200 (CEST) Received: by students2.univr.it (Postfix, from userid 48) id CCDDD27408C; Sat, 29 Oct 2005 11:46:42 +0200 (CEST) Received: from arena.sci.univr.it (arena.sci.univr.it [157.27.241.10]) by mail.studenti.univr.it (Horde MIME library) with HTTP for ; Sat, 29 Oct 2005 11:46:42 +0200 Message-ID: <20051029114642.w41nraah5jc0go8g@mail.studenti.univr.it> Date: Sat, 29 Oct 2005 09:50:00 -0000 From: gerardo.rossi@studenti.univr.it To: ecos-discuss@sourceware.org Cc: mirkomassi@tiscali.it MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) Subject: [ECOS] networking on eCos X-SW-Source: 2005-10/txt/msg00281.txt.bz2 Hello there, again that 2 italian students with some problems about eCos... We have 2 applications that use sockets, 1 transmitter that runs on eCos transmitting data on port 2000 and 1 receiver(non-eCos application) that reads data on the same port(all that on localhost momentarily). 1) Using the function gethostbyname() we have our error-message: "Unable to find host 127.0.0.1" but we resolve this introducing "init_all_network_interfaces()" and setting CYGDAT_NS_DNS_DEFAULT_SERVER via configtool with our dns-ip, but this function is so slow and we try to use "cyg_dns_res_init(struct in_addr *dns_server)". Can you help we about what we have to pass to this function? Which are the field-types of this structure? ... hp=(struct hostent *)gethostbyname(cyg_hal_sys_argv[1]); ... 2) Another problem: the transmitter sends data without errors but the receiver receives nothing and blocks on recv(): ... while (1) { n = recv(sock, buf, RTPSIZE, 0); ... } We preput that without eCos the applications communicate correctly. What may be the cause? 3) For last(please!) The full set of arguments can be accessed through the variables cyg_hal_sys_argc and cyg_hal_sys_argv, but which function we have to pass them? Which header we have to include? And how we have to pass our arguments to the application? Thanks a lot and excuse to us for our bad english. Mirko, Gerardo. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss