实例化一个MQTT协议的服务器
Instantiate a MQTT protocol server
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public MqttServer(
RSACryptoServiceProvider providerServer = null
)
Public Sub New (
Optional providerServer As RSACryptoServiceProvider = Nothing
)
public:
MqttServer(
RSACryptoServiceProvider^ providerServer = nullptr
)
new :
?providerServer : RSACryptoServiceProvider
(* Defaults:
let _providerServer = defaultArg providerServer null
*)
-> MqttServer
参数
- providerServer (Optional)
- 类型:System.Security.CryptographyRSACryptoServiceProvider
RSA秘钥对象,默认为空,表示使用随机生成的秘钥信息,如果需要自定义的RSA密钥,则需要实例化当前参数对象,具体通信的时候加密与否,取决于客户端连接的方式。
The RSA key object, which is empty by default, indicates that the randomly generated key information is used. If a custom RSA key is required,
the current parameter object needs to be instantiated. Whether the specific communication is encrypted or not depends on the way the client connects. .
参见