ASIO iostreams example -- help?

Hi Folks, I'm just getting into ASIO, and am having problems with the examples. I'm trying out both the tcp::iostream examples and the (more basic?) synchronous TCP daytime clients in the tutorial. I have the server print the socket endpoint, which produces: 0.0.0.0:23421 (23421 being a randomly typed socket number, once I figured out that the '13' in the examples doesn't work because Linux reserves socket numbers up to 1024 for the kernel). I then run the client, providing 0.0.0.0:23421 on the commandline as the address to connect to. I get this: Host not found (authoritative) Does anyone know what that means? I know very little (read:nothing) about the tcp protocol, which is probably the real problem. :-) Thanks -- Dave Steffen Numerica Corporation (www.numerica.us http://www.numerica.us/ ) 4850 Hahns Peak Drive, Suite 200 Loveland, Colorado 80538 main (970) 461-2000 direct (970) 461-2422 x227 fax (970) 461-2004 Email: dave.steffen@numerica.us

Hi,
For what i know 0.0.0.0 means that your server is listening for requests in
any interface, it is not a valid address. You should type something like
localhost, 127.0.0.1 or even your machine's public ip.
hope it helps,
cheers!
On Fri, Jun 12, 2009 at 5:04 PM, Dave Steffen
Hi Folks,
I'm just getting into ASIO, and am having problems with the examples.
I'm trying out both the tcp::iostream examples and the (more basic?) synchronous TCP daytime clients in the tutorial. I have the server print the socket endpoint, which produces:
0.0.0.0:23421
(23421 being a randomly typed socket number, once I figured out that the '13' in the examples doesn't work because Linux reserves socket numbers up to 1024 for the kernel).
I then run the client, providing 0.0.0.0:23421 on the commandline as the address to connect to. I get this:
Host not found (authoritative)
Does anyone know what that means? I know very little (read:nothing) about the tcp protocol, which is probably the real problem. :-)
Thanks
-- Dave Steffen Numerica Corporation (www.numerica.us http://www.numerica.us/ ) 4850 Hahns Peak Drive, Suite 200 Loveland, Colorado 80538 main (970) 461-2000 direct (970) 461-2422 x227 fax (970) 461-2004 Email: dave.steffen@numerica.us
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Matheus Araújo Aguiar Computer Scientist matheus.pit@gmail.com

(23421 being a randomly typed socket number, once I figured out that the '13' in the examples doesn't work because Linux reserves socket numbers up to 1024 for the kernel).
They're not reserved for the kernel, you just need to be root to bind to sockets below 1024. Chris -- echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
participants (3)
-
Christoph Gysin
-
Dave Steffen
-
Matheus Araújo Aguiar