From 7bf048fff25b983a08fa38f971bdd63d5dd69d57 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 19 Oct 2010 16:41:22 +0000 Subject: Make TLS_Client entirely via callbacks, not talking to Socket directly --- doc/examples/tls_client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/examples/tls_client.cpp') 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"); -- cgit v1.2.3