PipeSslNetCreateSslStream 方法 |
当前的管道创建一个 SSL/TLS 加密的流
The current pipeline creates an SSL/TLS encrypted stream
命名空间:
HslCommunication.Core.Pipe
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<SslStream> CreateSslStream(
Socket socket,
bool createNew = false
)
Public Function CreateSslStream (
socket As Socket,
Optional createNew As Boolean = false
) As OperateResult(Of SslStream)
public:
OperateResult<SslStream^>^ CreateSslStream(
Socket^ socket,
bool createNew = false
)
member CreateSslStream :
socket : Socket *
?createNew : bool
(* Defaults:
let _createNew = defaultArg createNew false
*)
-> OperateResult<SslStream>
参数
- socket
- 类型:System.Net.SocketsSocket
套接字对象 - createNew (Optional)
- 类型:SystemBoolean
是否创建一个新的流
返回值
类型:
OperateResultSslStream如果创建成功,返回流对象
参见