PipeSocket 方法 |
PipeSocket 类型公开以下成员。
名称 | 说明 | |
---|---|---|
ChangePorts |
变更当前的端口号信息,如果设置了多个端口号的话,就切换其他可用的端口 Change the current port number information, and if multiple port numbers are set, switch to other available ports | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (重写 PipeBaseDispose.) | |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetConnectIPEndPoint |
获取当前的远程连接信息,如果端口号设置了可选的数组,那么每次获取对象就会发生端口号切换的操作。 Get the current remote connection information. If the port number is set to an optional array, the port number switching operation will occur every time the object is obtained. | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
IsConnectitonError |
获取当前的连接状态是否发生了异常,如果发生了异常,返回 False Gets whether an exception has occurred in the current connection state, and returns False if an exception has occurred | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
PipeLockEnter |
获取锁,可以指定获取锁的超时时间,如果指定的时间没有获取锁,则返回False,反之,返回True (继承自 PipeBase。)To acquire a lock, you can specify the timeout period for acquiring a lock, return False if the specified time does not acquire a lock, and vice versa, return True | |
PipeLockLeave |
离开锁 (继承自 PipeBase。)Leave the lock | |
SetMultiPorts |
设置多个可选的端口号信息,例如在三菱的PLC里,支持配置多个端口号,当一个网络发生异常时,立即切换端口号连接读写,提升系统的稳定性 Set multiple optional port number information. For example, in Mitsubishi PLC, it supports to configure multiple port numbers. When an abnormality occurs in a network, the port number is immediately switched to connect to read and write to improve the stability of the system. | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |