title: Exception running boost asio ssl example
body: <p>I'm trying to run the SSL examples from boost::asio and I'm getting an "Invalid argument" exception when I run them. I'm on Linux x86_64.</p>
  
  <p><a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/client.cpp" rel="noreferrer">http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/client.cpp</a></p>
  
  <p><a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/server.cpp" rel="noreferrer">http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/server.cpp</a></p>
  
  <p>Compiled with:</p>
  
  <pre><code>g++ server.cpp -o server -lboost_system -lssl
  g++ client.cpp -o client -lboost_system -lssl
  </code></pre>
  
  <p>Run like:</p>
  
  <pre><code>$ ./server 
  Usage: server &lt;port&gt;
  $ ./server 10000
  Exception: Invalid argument
  $ ./server 1000
  Exception: Permission denied
  $ sudo ./server 1000
  Exception: Invalid argument
  </code></pre>
  
  <p>Not sure what the problem is :(
  Any help would be greatly appreciated. </p>
  
  <p>Thanks!</p>