Re: connect(2) for UDP
Peter Deacon <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <alpine.WNT.2.00.0812172332170.1988@SMURF> |
On Wed, 17 Dec 2008, Peter Deacon wrote: > Recommend using bind() rather than connect() with UDP. With bind you > still get ICMP indiciations for fast failure when send()ing. More specifically.. bind() sendto() select() for response The select will wake on either the expiration of the timer, data to be read or a failure hint if it turns out nothing was listening on the port from the previous sendto() take care, Peter