This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: UDP socket select/recvfrom problem when no server


> 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:
> 
<SNIP>
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]