License:
BSD style: see license.txtAuthor:
Jeff Davey
1 2 3 4 5 6 7 8 9 10 | auto s1 = new SSLSocketConduit(); if (s1.connect(new InternetAddress("www.yahoo.com", 443))) { char[] cmd = "GET / HTTP/1.0\r\n\r\n"; s1.write(cmd); char[1024] buff; uint bytesRead = read(buff); if (byteRead != SSLSocketConduit.Eof) Stdout.formatln("received: {}", buff[0..bytesRead]); } |
Params:
| sock | The socket to wrap in SSL |
| SSLCtx | the SSL Context as provided by the PKI layer. |
| clientMode | if true the socket will be Client Mode, Server otherwise. |
Params:
| ctx | SSLCtx class as provided by PKI |
| clientMode | if true, the socket will be in Client Mode, Server otherwise. |