Skip to Content.
Sympa Menu

freetds - Re: [freetds] connect(2) for UDP

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Peter Deacon <peterd AT iea-software.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] connect(2) for UDP
  • Date: Wed, 17 Dec 2008 23:50:12 -0800 (Pacific Standard Time)

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




Archive powered by MHonArc 2.6.24.

Top of Page