Beispiel #1
0
 /// <summary>
 /// 设置心跳包等待时间的命令
 /// </summary>
 /// <param name="waitTime">心跳包等待时间</param>
 /// <returns></returns>
 public Byte[] SettingHeartbeatWaitTimeCommand(UInt16 waitTime)
 {
     return GetDatagram(MessageId.SettingHeartbeatWaitTime,
         new Parameter(ParameterType.TntervalTime, waitTime.ToByteArray()));
 }
Beispiel #2
0
 /// <summary>
 /// 设置设置HTTP服务器使用的端口的命令
 /// </summary>
 /// <param name="httpPort">
 ///     设置HTTP服务器使用的端口。
 ///     <para>默认为80端口</para>
 /// </param>
 /// <returns></returns>
 public Byte[] SettingModuleHttpPortCommand(UInt16 httpPort = 0X50)
 {
     return GetDatagram(MessageId.SettingModuleHttpPort,
         new Parameter(ParameterType.HttpPort, httpPort.ToByteArray()));
 }
Beispiel #3
0
 /// <summary>
 /// 设置访问服务器的端口的命令
 /// </summary>
 /// <param name="serverPort">访问服务器的端口</param>
 /// <returns></returns>
 public Byte[] SettingAccessServerPortCommand(UInt16 serverPort)
 {
     return GetDatagram(MessageId.SettingAccessServerPort,
         new Parameter(ParameterType.ServerPort, serverPort.ToByteArray()));
 }
Beispiel #4
0
 /// <summary>
 /// 设置UDP连接使用的端口的命令
 /// </summary>
 /// <param name="udpPort">UDP连接使用的端口</param>
 /// <returns></returns>
 public Byte[] SettingModuleUdpPortCommand(UInt16 udpPort)
 {
     return GetDatagram(MessageId.SettingModuleUdpPort,
         new Parameter(ParameterType.UdpPort, udpPort.ToByteArray()));
 }