Re: connect(2) for UDP
[email protected] (Christos Zoulas)
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Organization | Astron Software |
| Message-ID | <[email protected]> |
On Dec 17, 11:50pm, [email protected] (Peter Deacon) wrote: -- Subject: Re: [freetds] connect(2) for UDP | 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() Always prefer poll over select on systems that have it. christos