[asio-users] strange error thrown when using tcp::resolve
Brought to you by:
chris_kohlhoff
From: Charlls Q. <cha...@ya...> - 2006-12-25 23:32:10
|
Hi, I'm using asio in the following setup; a main thread where the app does main work, a io thread where i instantiate a tcp asio server which receives connections. The tcp server is also announcing its service with bonjour and then looks for other peer services. In the resolve callback ( when a new service is found ) i tell it to resolve using asio::ip::tcp::resolver::resolve(query) but this resolve throws a "Service not found" error. This is a strange error because i usually don't have trouble getting tcp:.resolver to resolve succesfully even when the port is not yet accepting connections. Even when the host name is a fake one the error thrown is Host not found (authoritative) So i was wondering, what the "Service not found" error is about? right now i don't understand why it fails in this particular circumstance and not in simpler cases (like blocking_tcp_echo_client.cpp ) cheers (hey, merry xmas btw to all of you) __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar |