I had not any issues with Windows, but with Linux I failed
It is going about an example from boost::asio library tutorial
# Daytime.1 - A synchronous TCP daytime client
# Daytime.2 - A synchronous TCP daytime server
After compilation, I changed access settings for files
# chmod a+x server.cpp
# chmod a+x client.cpp
and after I started a program
# ./server
I received an error message like this
# Permission denied
whilst ./client started in second terminal correctly
Fortunately small changed in server.cpp was helpful
# tcp::acceptor acceptor(io_service, tcp::endpoint(tcp::v4(), 22222 /
*13*/));
from value 13 into 22222 (as an example) (but I do not understand,
what an influance has port number for 'permision denied')
Now both server and client starts correctly
but client just after start receive another error message
# Connection refused
I have found in google issue like this, unfortunately without any
solution
http://www.unix.com/high-level-progr...-server-progra...
Thanks in advance for help,
Lukasz