Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sat, 13 Oct 2001 12:32:37 +1100 From: "Alexandr V. Shutko" X-Mailer: The Bat! (v1.48c) Personal Reply-To: "Alexandr V.Shutko" Organization: KhSTU X-Priority: 3 (Normal) Message-ID: <1147140217.20011013123237@mail.khstu.ru> To: egor duda Subject: Re[2]: [AVShutko AT mail DOT khstu DOT ru: Re: BUG in sendto() function] In-reply-To: <138167630259.20011011140809@logos-m.ru> References: <20011010002737 DOT B16038 AT redhat DOT com> <16470545989 DOT 20011010111003 AT logos-m DOT ru> <148618535106 DOT 20011011155732 AT mail DOT khstu DOT ru> <138167630259 DOT 20011011140809 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello egor duda, Thursday, October 11, 2001, 9:08:09 PM, you wrote: ed> Gosh, it looks like i was just plain stupid yesterday when i was ed> looking at the code. everything is simpler than i thought. ed> get_inet_addr works ok, the problem is nobody uses data it returns. ed> i've just checked in the simple fix. you can either update sources ed> from cvs and rebuild or wait for next snapshot. There was no new snapshots so i rebuild it by myself :) All works ok... I tried fresh-compiled IServerd on heavy load and it is work fine... ed> Be warned, however, that there still is a problem with recvfrom() on ed> AF_UNIX socket. recvfrom() is supposed to return peer address... I think program that use recvfrom with datagram unix domain sockets already know peer address :) I didn't ever seen programs that use address structure from recvfrom in such situations.... P.S. Why don't you implement ualarm function in cygwin ? #################################################################### u_int ualarm (u_int value, u_int interval) { struct itimerval timer, otimer; timer.it_value.tv_sec = 0; timer.it_value.tv_usec = value; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = interval; if (setitimer (ITIMER_REAL, &timer, &otimer) < 0) return (u_int)-1; return (otimer.it_value.tv_sec * 1000000) + otimer.it_value.tv_usec; } #################################################################### -- With respect, Alexandr V. Shutko mailto:AVShutko AT mail DOT khstu DOT ru -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/