Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen" To: Subject: RE: UDP socket select/recvfrom problem when no server Date: Sun, 4 Apr 2004 20:42:56 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: > From: Christopher J. White > I've got a UDP socket application that fails since my > most recent upgrade, I believe from 1.5.9 to 1.5.9-1. > > Basic UDP app that fails as follows: > > I suspect that the destination is returning an ICMP error when the > server is not running and that is what's giving select() something to > look at. However, it's my understanding that unless I do a connect(), > ICMP errors are not propogated to the app. In addition, errno should > be ECONNREFUSED in this case, and not ECONNRESET. > > ...cj May I suggest that you download Ethereal (and winpcap if using windows). Then capture and analyze traffic, instead of guessing. ;-) -> ethereal.com /Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E ** on a mailing list; please keep replies on that particular list ** -- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); -- --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/