Home arrow Forums
Friday, 05 December 2008  
Latest Forums
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:great lib - little change! (0 viewing) 
Warning: Invalid argument supplied for foreach() in /home/ibusy.com/public_html/components/com_fireboard/template/default/fb_pathway.php on line 140
Go to bottom Post Reply Favoured: 0
TOPIC: Re:great lib - little change!
#3
marvin (User)
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
great lib - little change! 1 Year, 2 Months ago Karma: 0  
hi,

i love this little lib. just what i needed! I would really love to see it in boost!

one detail that i found (version 0.1.0 & 0.1.1) is, that the library binds the local udp socket to port 53. at least under linux. this is bad, because you have to be root or you will get "operation not permitted" and it's also a problem if there is an program already binding to that port (dns-server!).

i have this "works for me" patch (0.1.0), but i don't know if this is the right solution:

QUOTE:

diff -ur asio_dns_orig/boost/asio/dns/resolve.hpp asio_dns/boost/asio/dns/resolve.hpp
--- asio_dns_orig/boost/asio/dns/resolve.hpp 2007-09-04 22:51:21.000000000 +0200
+++ asio_dns/boost/asio/dns/resolve.hpp 2007-09-04 22:57:13.000000000 +0200
@@ -95,7 +95,7 @@
/// Constructor for the resolve class
resolve()
: ioservice(),
- socket(ioservice, ip::udp::endpoint(ip::udp::v4(), 53)),
+ socket(ioservice, ip::udp::endpoint(ip::udp::v4(), 0)),
retry_timer(ioservice),
death_timer(ioservice),
death_timeout(30)


so that it binds to a free local port.

again, thanks for that great stuff
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4
softwareace (Admin)
Admin
Posts: 15
graph
User Offline Click here to see the profile of this user
Birthdate:
Re:great lib - little change! 1 Year, 2 Months ago Karma: 0  
First off, THANKS! I've been wondering who is downloading and using it. I figured someone out there would have some kind of comment.

I tested this under FreeBSD, and it seemed to work well. I'll test the change and release it soon.
 
Report to moderator   Logged Logged  
 
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Top