diff options
author | lloyd <[email protected]> | 2012-10-13 19:26:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-10-13 19:26:38 +0000 |
commit | 5a6afba7f8d403cd29efe3302012ecf1b5f6ce5a (patch) | |
tree | 3f0835a6828e3b85674394e16e422ce1afe3a310 /doc/examples | |
parent | 8232b76a8d332fab5a1023b37e8d0a18cc1e0985 (diff) |
Add TLS::Server_Information to encapsulate the hostname/port pair.
Add a service identifier as well, to help out clients which may want
to negotiate multiple protocols over a single port and need to keep
the sessions disambiguated. Not sure if that is useful, but it might
be.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/tls_client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp index d56143a36..a9efe21e1 100644 --- a/doc/examples/tls_client.cpp +++ b/doc/examples/tls_client.cpp @@ -168,8 +168,7 @@ int main(int argc, char* argv[]) creds, policy, rng, - host, - port, + TLS::Server_Information(host, port), protocol_chooser); while(!client.is_closed()) |