diff options
author | lloyd <[email protected]> | 2012-01-16 23:24:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-16 23:24:07 +0000 |
commit | 608552cf96b20512e9b3f3dc30d6189607e6117d (patch) | |
tree | c4819cca3a9f9f54765ab61a02429ef1ae3eae25 /doc/examples/asio_tls_server.cpp | |
parent | 6007a1642b5d19b5af66e3ec42dae1023dd80a4c (diff) |
Small fixes
Diffstat (limited to 'doc/examples/asio_tls_server.cpp')
-rw-r--r-- | doc/examples/asio_tls_server.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/doc/examples/asio_tls_server.cpp b/doc/examples/asio_tls_server.cpp index 457460d41..ad8c75036 100644 --- a/doc/examples/asio_tls_server.cpp +++ b/doc/examples/asio_tls_server.cpp @@ -38,10 +38,7 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess ); } - tcp::socket& socket() - { - return m_socket; - } + tcp::socket& socket() { return m_socket; } void start() { @@ -52,10 +49,7 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess asio::placeholders::bytes_transferred)); } - void stop() - { - m_socket.close(); - } + void stop() { m_socket.close(); } private: tls_server_session(asio::io_service& io_service, @@ -151,11 +145,7 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess } } - - - //printf("Got %d bytes: ", (int)buf_len); - - if(buf_len > 4) + if(buf_len > 4) // FIXME: ghetto { std::string out; out += "\r\n"; @@ -176,7 +166,6 @@ class tls_server_session : public boost::enable_shared_from_this<tls_server_sess bool tls_handshake_complete(const Botan::TLS_Session& session) { - //printf("handshake complete\n"); return true; } |