点击或拖拽改变大小

SickIcrTcpServer 方法

SickIcrTcpServer 类型公开以下成员。

方法
  名称说明
公共方法AddSession
新增加一个管道会话信息
(继承自 CommunicationServer。)
受保护的方法CheckSerialReceiveDataComplete
检查串口接收的数据是否完成的方法,如果接收完成,则返回True
(继承自 CommunicationServer。)
公共方法CloseSerialSlave
关闭提供从机服务的串口对象
Close the serial port object that provides slave services
(继承自 CommunicationServer。)
公共方法ConnectHslAlientClient
创建一个指定的异形客户端连接,使用Hsl协议来发送注册包
Create a specified profiled client connection and use the Hsl protocol to send registration packets
(继承自 CommunicationServer。)
公共方法ConnectRemoteServer
新增一个主动连接的请求,将不会收到是否连接成功的信息,当网络中断及奔溃之后,会自动重新连接。
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.
(继承自 CommunicationServer。)
公共方法Equals (继承自 Object。)
受保护的方法ExtraOnClose
关闭的时候额外执行的功能代码
(继承自 CommunicationServer。)
受保护的方法ExtraOnStart
服务器启动的时候额外执行的功能代码
(继承自 CommunicationTcpServer。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
受保护的方法GetNewNetMessage
获取一个新的消息对象的方法,需要在继承类里面进行重写
The method to get a new message object needs to be overridden in the inheritance class
(继承自 CommunicationServer。)
公共方法GetPipeSessions
获取管道会话的列表
(继承自 CommunicationServer。)
公共方法GetTrustedClients
获取受信任的客户端列表
Get a list of trusted clients
(继承自 CommunicationTcpServer。)
公共方法GetType (继承自 Object。)
受保护的方法LogDebugMsg
记录当前的日志信息
(继承自 CommunicationTcpServer。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法RemoveSession(TimeSpan)
指定超时时间移除当前的会话列表,只有是TCP的管道(PipeTcpNet)才需要被移除。
Specify a timeout to remove the current session list. Only TCP pipe (PipeTcpNet) need to be removed.
(继承自 CommunicationServer。)
公共方法RemoveSession(PipeSession, String)
移除一个管道会话
(继承自 CommunicationServer。)
公共方法ServerClose
关闭服务器的引擎
Shut down the server's engine
(继承自 CommunicationTcpServer。)
公共方法ServerStart
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine
(继承自 CommunicationTcpServer。)
公共方法ServerStart(Int32)
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine
(继承自 CommunicationTcpServer。)
公共方法ServerStart(Int32, Boolean)
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine
(继承自 CommunicationServer。)
公共方法SetNetMessage
设置当前的服务器接收的消息信息
(继承自 CommunicationServer。)
公共方法SetTrustedIpAddress
设置并启动受信任的客户端登录并读写,如果为null,将关闭对客户端的ip验证
Set and start the trusted client login and read and write, if it is null, the client's IP verification will be turned off
(继承自 CommunicationTcpServer。)
受保护的方法SocketAcceptExtraCheck
当客户端的socket登录的时候额外检查的操作,并返回操作的结果信息。
The operation is additionally checked when the client's socket logs in, and the result information of the operation is returned.
(继承自 CommunicationTcpServer。)
公共方法StartSerialSlave(ActionSerialPort)
启动串口的从机服务,使用自定义的初始化方法初始化串口的参数
Start the slave service of serial and initialize the parameters of the serial port using a custom initialization method
(继承自 CommunicationServer。)
公共方法StartSerialSlave(String)
启动串口的从机服务,使用默认的参数进行初始化串口,9600波特率,8位数据位,无奇偶校验,1位停止位
Start the slave service of serial, initialize the serial port with default parameters, 9600 baud rate, 8 data bits, no parity, 1 stop bit
(继承自 CommunicationServer。)
公共方法StartSerialSlave(String, Int32)
启动串口的从机服务,使用默认的参数进行初始化串口,8位数据位,无奇偶校验,1位停止位
Start the slave service of serial, initialize the serial port with default parameters, 8 data bits, no parity, 1 stop bit
(继承自 CommunicationServer。)
公共方法StartSerialSlave(String, Int32, Int32, Parity, StopBits)
启动串口的从机服务,使用指定的参数进行初始化串口,指定数据位,指定奇偶校验,指定停止位
(继承自 CommunicationServer。)
受保护的方法ThreadPoolLogin
当客户端连接到服务器,并听过额外的检查后,进行回调的方法
Callback method when the client connects to the server and has heard additional checks
(继承自 CommunicationServer。)
公共方法ToString (重写 CommunicationServerToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见