aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/tls_client.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-19 16:41:22 +0000
committerlloyd <[email protected]>2010-10-19 16:41:22 +0000
commit7bf048fff25b983a08fa38f971bdd63d5dd69d57 (patch)
tree46561c75b2a77b888b767f0358ecc20a6be2ae96 /doc/examples/tls_client.cpp
parentfafe810679e01949ddd8ac86c8367f3c15b0bedc (diff)
Make TLS_Client entirely via callbacks, not talking to Socket directly
Diffstat (limited to 'doc/examples/tls_client.cpp')
-rw-r--r--doc/examples/tls_client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp
index c17ffe4da..854cb3b28 100644
--- a/doc/examples/tls_client.cpp
+++ b/doc/examples/tls_client.cpp
@@ -39,7 +39,9 @@ int main(int argc, char* argv[])
TLS_Policy policy;
- TLS_Client tls(policy, *rng, sock);
+ TLS_Client tls(std::tr1::bind(&Socket::read, std::tr1::ref(sock), _1, _2),
+ std::tr1::bind(&Socket::write, std::tr1::ref(sock), _1, _2),
+ policy, *rng);
printf("Handshake extablished...\n");