点击或拖拽改变大小

ForwardSession 类

转发过程中的中间会话信息
继承层次
SystemObject
  HslCommunication.Core.NetSessionBase
    HslCommunication.Core.NetAppSession
      HslCommunication.EnthernetForwardSession

命名空间:  HslCommunication.Enthernet
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class ForwardSession : AppSession

ForwardSession 类型公开以下成员。

构造函数
  名称说明
公共方法ForwardSession
实例化一个默认的对象
公共方法ForwardSession(Socket, Int32)
指定客户端的 socket 来实例化一个对象
Top
属性
  名称说明
公共属性ClientUniqueID
客户端唯一的标识,在NetPushServer及客户端类里有使用
The unique identifier of the client, used in the NetPushServer and client classes
(继承自 AppSession。)
公共属性HeartTime
获取心跳验证的时间点
Get the time point of heartbeat verification
(继承自 SessionBase。)
公共属性IpAddress
获取当前的远程连接对象的IP地址
Get the IP address of the current remote connection object
(继承自 SessionBase。)
公共属性IpEndPoint
获取当前的连接对象连接的远程客户端
Get the remote client connected by the current connection object
(继承自 SessionBase。)
公共属性LoginAlias
远程对象的别名信息
Alias information for remote objects
(继承自 AppSession。)
公共属性OnlineTime
获取当前的客户端的上线时间
Get the online time of the current client
(继承自 SessionBase。)
公共属性ServerBuffer
服务端的缓存数据信息
公共属性ServerSocket
连接服务端的socket
公共属性Tag
当前会话绑定的自定义的对象内容
The content of the custom object bound to the current session
(继承自 AppSession。)
公共属性WorkSocket
实际传输数据的对象,除非你清楚自己在收发什么数据信息,否则尽量不直接使用本Socket对象
The actual data transmission object, unless you know what data information you are sending and receiving, try not to directly use this Socket object
(继承自 SessionBase。)
Top
方法
  名称说明
公共方法Equals (继承自 AppSession。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 AppSession。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法ToString (重写 AppSessionToString.)
公共方法UpdateHeartTime
更新当前的心跳时间
Update the current heartbeat time
(继承自 SessionBase。)
公共方法UpdateSocket
更新当前的Socket连接对象信息
(继承自 SessionBase。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见