SecsHsmsServer 方法 |
SecsHsmsServer 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | AddSession |
新增加一个管道会话信息 (继承自 CommunicationServer。)A new pipeline session information has been added |
![]() | CheckSerialReceiveDataComplete |
检查串口接收的数据是否完成的方法,如果接收完成,则返回True (继承自 CommunicationServer。) |
![]() | CloseSerialSlave |
关闭提供从机服务的串口对象 (继承自 CommunicationServer。)Close the serial port object that provides slave services |
![]() | ConnectHslAlientClient |
创建一个指定的异形客户端连接,使用Hsl协议来发送注册包 (继承自 CommunicationServer。)Create a specified profiled client connection and use the Hsl protocol to send registration packets |
![]() | ConnectRemoteServer |
新增一个主动连接的请求,将不会收到是否连接成功的信息,当网络中断及奔溃之后,会自动重新连接。 (继承自 CommunicationServer。)A new active connection request will not receive a message whether the connection is successful. When the network is interrupted and crashed, it will automatically reconnect. |
![]() | Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
![]() | ExtraOnClose |
关闭的时候额外执行的功能代码
(继承自 CommunicationServer。) |
![]() | ExtraOnStart |
服务器启动的时候额外执行的功能代码
(继承自 CommunicationTcpServer。) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
![]() | GetHashCode | Serves as the default hash function. (继承自 Object。) |
![]() | GetNewNetMessage |
获取一个新的消息对象的方法,需要在继承类里面进行重写 (重写 CommunicationServerGetNewNetMessage.)The method to get a new message object needs to be overridden in the inheritance class |
![]() | GetPipeSessions |
获取管道会话的列表 (继承自 CommunicationServer。)Get a list of pipeline sessions |
![]() | GetTrustedClients |
获取受信任的客户端列表 (继承自 CommunicationTcpServer。)Get a list of trusted clients |
![]() | GetType | Gets the Type of the current instance. (继承自 Object。) |
![]() | LogDebugMsg |
记录当前的日志信息
(继承自 CommunicationTcpServer。) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
![]() | PublishSecsMessage(Byte, Byte, SecsValue) | |
![]() | PublishSecsMessage(Byte, Byte, SecsValue, Boolean) | |
![]() | PublishSecsMessage(Byte, Byte, SecsValue, UInt32, Boolean) | |
![]() | PublishSecsMessage(PipeSession, Byte, Byte, SecsValue, Boolean) | |
![]() | ReadSecsMessage |
以同步应答的方式从设备读取数据,设备收到本消息后,必须回复一个相同消息号的消息 Read data from the device in a synchronous response manner. After the device receives this message, it must reply with a message of the same message number |
![]() | RemoveSession(TimeSpan) |
指定超时时间移除当前的会话列表,只有是TCP的管道(PipeTcpNet)才需要被移除。 (继承自 CommunicationServer。)Specify a timeout to remove the current session list. Only TCP pipe (PipeTcpNet) need to be removed. |
![]() | RemoveSession(PipeSession, String) |
移除一个管道会话 (继承自 CommunicationServer。)Remove a pipeline session |
![]() | SendByCommand(PipeSession, SecsMessage, Byte, Byte, SecsValue) |
向指定的会话信息发送SECS格式的原始字节数据信息,session 为当前的会话对象,receiveMessage 为从客户端接收的数据,data 是真实的返回数据 Send the original byte data information in SECS format to the specified session information. Session is the current session object, receiveMessage is the data received from the client, and data is the real returned data |
![]() | SendByCommand(PipeSession, SecsMessage, Byte, Byte, Byte) |
向指定的会话信息发送SECS格式的原始字节数据信息,session 为当前的会话对象,receiveMessage 为从客户端接收的数据,data 是真实的返回数据 Send the original byte data information in SECS format to the specified session information. Session is the current session object, receiveMessage is the data received from the client, and data is the real returned data |
![]() | SendByCommand(PipeSession, SecsMessage, Byte, Byte, SecsValue, Boolean) |
向指定的会话信息发送SECS格式的原始字节数据信息,session 为当前的会话对象,receiveMessage 为从客户端接收的数据,data 是真实的返回数据 Send the original byte data information in SECS format to the specified session information. Session is the current session object, receiveMessage is the data received from the client, and data is the real returned data |
![]() | SendByCommand(PipeSession, SecsMessage, Byte, Byte, Byte, Boolean) |
向指定的会话信息发送SECS格式的原始字节数据信息,session 为当前的会话对象,receiveMessage 为从客户端接收的数据,data 是真实的返回数据 Send the original byte data information in SECS format to the specified session information. Session is the current session object, receiveMessage is the data received from the client, and data is the real returned data |
![]() | ServerClose |
关闭服务器的引擎 (继承自 CommunicationTcpServer。)Shut down the server's engine |
![]() | ServerStart |
指定端口号来启动服务器的引擎 (继承自 CommunicationTcpServer。)Specify the port number to start the server's engine |
![]() | ServerStart(Int32) |
指定端口号来启动服务器的引擎 (继承自 CommunicationTcpServer。)Specify the port number to start the server's engine |
![]() | ServerStart(Int32, Boolean) |
指定端口号来启动服务器的引擎 (继承自 CommunicationServer。)Specify the port number to start the server's engine |
![]() | ServerStart(Int32, Int32) |
指定一个TCP端口及UDP端口,同时启动两种模式的服务器 (继承自 CommunicationServer。)Specify a TCP port and a UDP port to start the server in both modes at the same time |
![]() | SetNetMessage |
设置当前的服务器接收的消息信息
(继承自 CommunicationServer。) |
![]() | SetSslPipeAction |
设置一个SSL的管道操作对象,在管道实例化之后,可以进行一些初始化的属性设置,例如自定义 SslProtocols 枚举 (继承自 CommunicationTcpServer。) |
![]() | SetTrustedIpAddress |
设置并启动受信任的客户端登录并读写,如果为null,将关闭对客户端的ip验证 (继承自 CommunicationTcpServer。)Set and start the trusted client login and read and write, if it is null, the client's IP verification will be turned off |
![]() | SocketAcceptExtraCheck |
当客户端的socket登录的时候额外检查的操作,并返回操作的结果信息。 (继承自 CommunicationTcpServer。)The operation is additionally checked when the client's socket logs in, and the result information of the operation is returned. |
![]() | StartSerialSlave(ActionSerialPort) |
启动串口的从机服务,使用自定义的初始化方法初始化串口的参数 (继承自 CommunicationServer。)Start the slave service of serial and initialize the parameters of the serial port using a custom initialization method |
![]() | StartSerialSlave(String) |
启动串口的从机服务,使用默认的参数进行初始化串口,9600波特率,8位数据位,无奇偶校验,1位停止位 (继承自 CommunicationServer。)Start the slave service of serial, initialize the serial port with default parameters, 9600 baud rate, 8 data bits, no parity, 1 stop bit |
![]() | StartSerialSlave(String, Int32) |
启动串口的从机服务,使用默认的参数进行初始化串口,8位数据位,无奇偶校验,1位停止位 (继承自 CommunicationServer。)Start the slave service of serial, initialize the serial port with default parameters, 8 data bits, no parity, 1 stop bit |
![]() | StartSerialSlave(String, Int32, Int32, Parity, StopBits) |
启动串口的从机服务,使用指定的参数进行初始化串口,指定数据位,指定奇偶校验,指定停止位 (继承自 CommunicationServer。) |
![]() | ThreadPoolLogin |
当客户端连接到服务器,并听过额外的检查后,进行回调的方法 (继承自 CommunicationServer。)Callback method when the client connects to the server and has heard additional checks |
![]() | ToString | Returns a string that represents the current object. (重写 CommunicationServerToString.) |
![]() | UseSSL(X509Certificate) |
使用SSL通信,传递一个证书的对象
(继承自 CommunicationTcpServer。) |
![]() | UseSSL(String, String) |
使用SSL通信,传递一个证书的路径,以及证书的密码
(继承自 CommunicationTcpServer。) |
名称 | 说明 | |
---|---|---|
![]() | ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |